summaryrefslogtreecommitdiff
path: root/net/sniffit/patches/patch-ab
blob: 976382c1de1b6fc7d452febc4cd0017e39d1fd95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$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."