From: Adam Gołębiowski Date: Thu, 12 May 2005 17:44:13 +0000 (+0000) Subject: - fixed detection of pcap_debug / yydebug - it looks like that GCC > 3.3 X-Git-Tag: auto/th/tcpdump-3_8_3-6~2 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=8877f9d189b843775f201d70947ff4c31cd9bc51;p=packages%2Ftcpdump.git - fixed detection of pcap_debug / yydebug - it looks like that GCC > 3.3 "optimizes" test code in a different way than GCC 3.3 does, which in the end always returns true for these tests. Changed files: tcpdump-pcap_debug.patch -> 1.2 --- diff --git a/tcpdump-pcap_debug.patch b/tcpdump-pcap_debug.patch index 94c6e68..ef05ff6 100644 --- a/tcpdump-pcap_debug.patch +++ b/tcpdump-pcap_debug.patch @@ -1,21 +1,39 @@ -diff -Nur tcpdump-3.8.3.org/configure tcpdump-3.8.3/configure ---- tcpdump-3.8.3.org/configure 2004-03-28 23:06:09.000000000 +0200 -+++ tcpdump-3.8.3/configure 2005-01-29 19:13:27.750571264 +0100 -@@ -8888,7 +8888,7 @@ +--- tcpdump-3.8.3.orig/configure 2005-05-12 17:11:22.000000000 +0000 ++++ tcpdump-3.8.3/configure 2005-05-12 17:12:36.000000000 +0000 +@@ -8879,18 +8879,9 @@ + int + main () + { +- +-int +-return_pcap_debug(void) +-{ + extern int pcap_debug; +- return pcap_debug; } - +- - ; -+ ; return_pcap_debug(); - return 0; - } +- return 0; +-} _ACEOF -@@ -8947,7 +8947,7 @@ + rm -f conftest.$ac_objext conftest$ac_exeext + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 +@@ -8938,17 +8929,8 @@ + int + main () + { +- +- int +- return_yydebug(void) +- { + extern int yydebug; +- return yydebug; - } - +- } +- - ; -+ ; return_yydebug(); - return 0; +- return 0; } _ACEOF + rm -f conftest.$ac_objext conftest$ac_exeext