blob: 1f168f55def16a5df67fb12efc1a0294c22ba003 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- 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"
|