]> The Tcpdump Group git mirrors - libpcap/commitdiff
If parser debugging is enabled, ensure pcap_debug is exported.
authorGuy Harris <[email protected]>
Sun, 27 Dec 2015 18:03:51 +0000 (10:03 -0800)
committerGuy Harris <[email protected]>
Sun, 27 Dec 2015 18:03:51 +0000 (10:03 -0800)
grammar.y

index 5af2972c1976adf7946ce82549ab103eceb7e121..2078a3ecd36c2cc4d162e7bdaebd67f02f0c57a8 100644 (file)
--- 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 <net/if.h>
 #include <net/pfvar.h>