pkgsrc/net/sniffit/patches/patch-ab
obache ae48394cb3 * fixes detection of ncurses.h
* let to exactly use system libpcap (fixes build with newer system libpcap).

Bump PKGREVISION.
2012-04-07 09:23:11 +00:00

46 lines
1 KiB
Text

$NetBSD: patch-ab,v 1.5 2012/04/07 09:23:11 obache Exp $
--- configure.orig 1997-04-18 09:33:57.000000000 +0000
+++ configure
@@ -538,7 +538,7 @@ ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
-subdirs="libpcap-0.3"
+subdirs=
# Extract the first word of "gcc", so it can be a program name with args.
@@ -996,7 +996,7 @@ cat >> confdefs.h <<EOF
EOF
-if test $ac_cv_sizeof_unsigned_long_int -ne 4; then
+if test $ac_cv_sizeof_unsigned_long_int -lt 4; then
echo "unisigned short is NOT 4 bytes... quiting"
exit
fi
@@ -1296,7 +1296,7 @@ EOF
OS_OPT=
;;
-freebsd*)
+freebsd* | dragonfly*)
cat >> confdefs.h <<\EOF
#define FREEBSD 1
EOF
@@ -1304,6 +1304,14 @@ EOF
OS_OPT=
;;
+netbsd*)
+ cat >> confdefs.h <<\EOF
+#define NETBSD 1
+EOF
+
+ OS_OPT=
+
+ ;;
*)
echo "NOT A SUPPORTED SYSTEM / OR SYSTEM NOT RECOGNISED"
echo "Contact <Coder@reptile.rug.ac.be> if you feel it might be a bug."