summaryrefslogtreecommitdiff
path: root/data/nmap/libpcap.diff
blob: 96af3542108141940947c4c01ae71e328d437ca8 (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
diff -r -u nmap-4.50/configure.ac nmap-4.50+iPhone/configure.ac
--- nmap-4.50/configure.ac	2007-11-27 22:18:59.000000000 +0000
+++ nmap-4.50+iPhone/configure.ac	2007-12-28 08:46:40.000000000 +0000
@@ -306,22 +306,7 @@
   LIBS_OLD="$LIBS"
   LIBS="$LIBS -lpcap"
   AC_MSG_CHECKING(if libpcap version is recent enough)
-  AC_TRY_RUN([
-#include <stdio.h>
-extern char pcap_version[];
-int main() {
-  int major, minor1, minor2;
-  sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
-  if (major > 0) 
-    exit(0);
-  if (minor1 < 9)
-    exit(1);
-  if (minor2 < 4)
-    exit(1);
-  exit(0);
-}],
-[AC_MSG_RESULT(yes); have_libpcap=yes],
-[AC_MSG_RESULT(no); have_libpcap=no])
+AC_MSG_RESULT(yes); have_libpcap=yes
 LIBS="$LIBS_OLD"
 fi