diff options
Diffstat (limited to 'data/nmap/libpcap.diff')
-rw-r--r-- | data/nmap/libpcap.diff | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/data/nmap/libpcap.diff b/data/nmap/libpcap.diff new file mode 100644 index 000000000..96af35421 --- /dev/null +++ b/data/nmap/libpcap.diff @@ -0,0 +1,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 + |