freebsd-ports/devel/libpci/files/patch-lib::fbsd-device.c
Joe Marcus Clarke 10c1e548e6 Add libpci, an API to read and write PCI configuration registers.
Submitted by:	Samy Al Bahra <samy@kerneled.com>
2003-06-28 22:36:00 +00:00

24 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"