From: Guy Harris Date: Sun, 27 Dec 2015 18:03:51 +0000 (-0800) Subject: If parser debugging is enabled, ensure pcap_debug is exported. X-Git-Tag: libpcap-1.8.0-bp~69 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/182ff86d03a88e6d1b330b4055002daec8743baf If parser debugging is enabled, ensure pcap_debug is exported. --- diff --git a/grammar.y b/grammar.y index 5af2972c..2078a3ec 100644 --- a/grammar.y +++ b/grammar.y @@ -72,6 +72,10 @@ struct rtentry; #include "grammar.h" #include "scanner.h" +#if YYDEBUG +PCAP_API_DEF int pcap_debug; +#endif + #ifdef HAVE_NET_PFVAR_H #include #include