severity 292324 important
tags 292324 - fixed-upstream
quit

Hi,

enclosed please find updated patch for pciutils-2.2.3.

Thanks

                Petr
diff -ur o/pciutils-2.2.3/lib/configure pciutils-2.2.3/lib/configure
--- o/pciutils-2.2.3/lib/configure      2006-05-05 14:25:07.000000000 +0200
+++ pciutils-2.2.3/lib/configure        2006-05-10 09:12:53.000000000 +0200
@@ -22,6 +22,10 @@
 else
        cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/'`
 fi
+if [ "$sys" = "GNU/kFreeBSD" ]
+then
+       sys=freebsd
+fi
 host=${3:-$cpu-$sys}
 host=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr 'A-Z' 'a-z'`
 cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
diff -ur o/pciutils-2.2.3/lib/fbsd-device.c pciutils-2.2.3/lib/fbsd-device.c
--- o/pciutils-2.2.3/lib/fbsd-device.c  2006-05-05 14:18:24.000000000 +0200
+++ pciutils-2.2.3/lib/fbsd-device.c    2006-05-10 09:10:32.000000000 +0200
@@ -11,6 +11,13 @@
 #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>

Reply via email to