aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pciutils/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-06-13 18:48:01 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-06-13 18:48:01 +0000
commit9697cee6953483a0f459e4a022898bd9f0aab2e2 (patch)
tree406f90c8f85bf29fec935b45794b3d62ff90fef5 /sysutils/pciutils/files
parent760697b0d242992cbc64695a7ffba94573b1757e (diff)
downloadports-9697cee6953483a0f459e4a022898bd9f0aab2e2.tar.gz
ports-9697cee6953483a0f459e4a022898bd9f0aab2e2.zip
Notes
Diffstat (limited to 'sysutils/pciutils/files')
-rw-r--r--sysutils/pciutils/files/patch-Makefile13
-rw-r--r--sysutils/pciutils/files/patch-lib::Makefile12
-rw-r--r--sysutils/pciutils/files/patch-lib::fbsd-device.c24
3 files changed, 49 insertions, 0 deletions
diff --git a/sysutils/pciutils/files/patch-Makefile b/sysutils/pciutils/files/patch-Makefile
new file mode 100644
index 000000000000..a17952c2b73a
--- /dev/null
+++ b/sysutils/pciutils/files/patch-Makefile
@@ -0,0 +1,13 @@
+--- Makefile.orig Sat Jan 4 15:53:01 2003
++++ Makefile Fri Jun 13 21:20:28 2003
+@@ -2,9 +2,7 @@
+ # Makefile for Linux PCI Utilities
+ # (c) 1998--2003 Martin Mares <mj@ucw.cz>
+
+-OPT=-O2 -fomit-frame-pointer
+-#OPT=-O2 -g
+-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes
++CFLAGS += -Wall -W -Wno-parentheses -Wstrict-prototypes
+
+ VERSION=2.1.11
+ #SUFFIX=-pre2
diff --git a/sysutils/pciutils/files/patch-lib::Makefile b/sysutils/pciutils/files/patch-lib::Makefile
new file mode 100644
index 000000000000..31a456ec119b
--- /dev/null
+++ b/sysutils/pciutils/files/patch-lib::Makefile
@@ -0,0 +1,12 @@
+--- lib/Makefile.orig Thu Dec 26 22:28:33 2002
++++ lib/Makefile Thu Jun 12 02:46:13 2003
+@@ -28,6 +28,9 @@
+ ifdef HAVE_PM_FBSD_DEVICE
+ OBJS += fbsd-device.o
+ CFLAGS += -I/usr/src/sys
++ifdef FREEBSD_SYS
++CFLAGS += -I${FREEBSD_SYS}
++endif
+ endif
+
+ ifdef HAVE_PM_AIX_DEVICE
diff --git a/sysutils/pciutils/files/patch-lib::fbsd-device.c b/sysutils/pciutils/files/patch-lib::fbsd-device.c
new file mode 100644
index 000000000000..1f168f55def1
--- /dev/null
+++ b/sysutils/pciutils/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"
+