]> mj.ucw.cz Git - pciutils.git/commitdiff
Added support for GNU/kFreeBSD.
authorMartin Mares <mj@ucw.cz>
Wed, 10 May 2006 09:28:37 +0000 (11:28 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 10 May 2006 09:28:37 +0000 (11:28 +0200)
ChangeLog
lib/configure
lib/fbsd-device.c

index 98ee5621ac849d5178300bb7311fef6eb6afbf31..3ac84c2521f3b43abb7db5822c196f942aaa3823 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-10  Martin Mares  <mj@ucw.cz>
+
+       * lib/configure, lib/fbsd-device.c: Added support for GNU/kFreeBSD.
+       Thanks to Petr Salinger for the patch.
+
 2006-05-05  Martin Mares  <mj@ucw.cz>
 
        * Released as 2.2.3.
index 2a91c39732f3d079a9b73209641fcc83c1ec4312..6a440d236a7a93648daa0e4405a16273f25c54aa 100755 (executable)
@@ -22,6 +22,10 @@ then
 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/'`
index 833af56bde12bb5b55daf8a4c2c4f0a6c558b845..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>