diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-06-28 22:36:00 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-06-28 22:36:00 +0000 |
commit | 10c1e548e6ca193bd8eb49c92b2ef4a54e02a25a (patch) | |
tree | 9b8c4f5adebe48e3da847fb3c60923b7b268d210 /devel/libpci/files/patch-lib::fbsd-device.c | |
parent | Fix for libtool new world order (diff) |
Add libpci, an API to read and write PCI configuration registers.
Submitted by: Samy Al Bahra <samy@kerneled.com>
Notes
Notes:
svn path=/head/; revision=83790
Diffstat (limited to 'devel/libpci/files/patch-lib::fbsd-device.c')
-rw-r--r-- | devel/libpci/files/patch-lib::fbsd-device.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/devel/libpci/files/patch-lib::fbsd-device.c b/devel/libpci/files/patch-lib::fbsd-device.c new file mode 100644 index 000000000000..1f168f55def1 --- /dev/null +++ b/devel/libpci/files/patch-lib::fbsd-device.c @@ -0,0 +1,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" + |