check if some /proc files exist, before using it, for systems without diag kernel...
[openwrt.git] / openwrt / package / tcpdump / patches / remove-pcap-debug.patch
1 diff -urN tcpdump-3.8.3.old/tcpdump.c tcpdump-3.8.3.dev/tcpdump.c
2 --- tcpdump-3.8.3.old/tcpdump.c 2004-03-17 20:47:48.000000000 +0100
3 +++ tcpdump-3.8.3.dev/tcpdump.c 2005-04-29 00:53:20.000000000 +0200
4 @@ -596,20 +596,6 @@
5 error("invalid data link type %s", dlt_name);
6 break;
7
8 -#if defined(HAVE_PCAP_DEBUG) || defined(HAVE_YYDEBUG)
9 - case 'Y':
10 - {
11 - /* Undocumented flag */
12 -#ifdef HAVE_PCAP_DEBUG
13 - extern int pcap_debug;
14 - pcap_debug = 1;
15 -#else
16 - extern int yydebug;
17 - yydebug = 1;
18 -#endif
19 - }
20 - break;
21 -#endif
22 default:
23 usage();
24 /* NOTREACHED */
This page took 0.042614 seconds and 5 git commands to generate.