ports/sysutils/pciutils/files/patch-lib::fbsd-device.c
Joe Marcus Clarke 9697cee695 Add pciutils, a group of Linux utilities ported to FreeBSD that allow one
to list and manipulate PCI bus parameters.

Submitted by:	Samy Al Bahra <samy@kerneled.com>
2003-06-13 18:48:01 +00:00

25 lines
496 B
C

--- lib/fbsd-device.c.orig Fri Jun 13 11:11:29 2003
+++ lib/fbsd-device.c Fri Jun 13 11:21:52 2003
@@ -14,9 +14,19 @@
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
+#include <osreldate.h>
-#include <pci/pcivar.h>
-#include <pci/pci_ioctl.h>
+#if __FreeBSD_version < 500000
+# include <pci/pcivar.h>
+#else
+# include <dev/pci/pcivar.h>
+#endif
+
+#if __FreeBSD_version < 430000
+# include <pci/pci_ioctl.h>
+#else
+# include <sys/pciio.h>
+#endif
#include "internal.h"