]> git.pld-linux.org Git - packages/tcpdump.git/commitdiff
- fixed detection of pcap_debug / yydebug - it looks like that GCC > 3.3
authorAdam Gołębiowski <adamg@pld-linux.org>
Thu, 12 May 2005 17:44:13 +0000 (17:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  "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

tcpdump-pcap_debug.patch

index 94c6e6849bc4057fce254e60fc85bad3b306ae7a..ef05ff6eeb560504f5d75052b00d92d039c09829 100644 (file)
@@ -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
This page took 0.036064 seconds and 4 git commands to generate.