]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/fbsd-device.c
Added support for GNU/kFreeBSD.
[pciutils.git] / lib / fbsd-device.c
index c0af6a11a14fad4f1283b9701d336ba2be16caba..ba3337c84c18c13b3ce5cb4f6f5573e3c0c17f78 100644 (file)
 #include <string.h>
 #include <unistd.h>
 #include <osreldate.h>
+#include <stdint.h>
+
+#ifdef __FreeBSD_kernel_version
+#  ifndef __FreeBSD_version
+#    define __FreeBSD_version __FreeBSD_kernel_version
+#  endif
+#endif
 
 #if __FreeBSD_version < 500000
 #  include <pci/pcivar.h>
@@ -29,7 +36,7 @@
 static void
 fbsd_config(struct pci_access *a)
 {
-  a->method_params[PCI_ACCESS_FBSD_DEVICE] = PATH_FBSD_DEVICE;
+  a->method_params[PCI_ACCESS_FBSD_DEVICE] = PCI_PATH_FBSD_DEVICE;
 }
 
 static int