[Git][NTPsec/ntpsec][master] Hack to dance around bug in older Bison. Issue 287

Hal Murray gitlab at mg.gitlab.com
Sat May 6 23:21:15 UTC 2017


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
ad66e469 by Hal Murray at 2017-05-06T16:20:01-07:00
Hack to dance around bug in older Bison.  Issue 287

- - - - -


1 changed file:

- ntpd/ntp_config.c


Changes:

=====================================
ntpd/ntp_config.c
=====================================
--- a/ntpd/ntp_config.c
+++ b/ntpd/ntp_config.c
@@ -42,6 +42,12 @@
 #include "ntp_scanner.h"
 #include "ntp_parser.tab.h"
 
+/* Hack to dance around bug in older Bison.  See Issue 287 */
+/* Similar for yydebug below */
+#ifndef yyparse
+  int yyparse (void);
+#endif
+
 /* NetInfo configuration locations */
 #ifdef HAVE_NETINFO_NI_H
 #define NETINFO_CONFIG_DIR "/config/ntp"
@@ -3017,6 +3023,10 @@ void readconfig(const char *config_file)
 
 	/*** BULK OF THE PARSER ***/
 #ifdef DEBUG
+#ifndef yydebug
+  /* See comment above for yyparse */
+  extern int yydebug;
+#endif
 	yydebug = !!(debug >= 5);
 #endif
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ad66e4690f3e3788222110917369b7d7dbdba933

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ad66e4690f3e3788222110917369b7d7dbdba933
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170506/7c627933/attachment.html>


More information about the vc mailing list