[ntpsec commit] Kludge to suppress caused by old/buggy Bison

Hal Murray murray at ntpsec.org
Sun Oct 4 09:57:12 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    233f2d68a8222be15a5a2b6ae56a97cd6ad2a782
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=233f2d68a8222be15a5a2b6ae56a97cd6ad2a782

Author:    Hal Murray <hmurray at megapathdsl.net>
Date:      Sun Oct  4 02:56:23 2015 -0700

Kludge to suppress caused by old/buggy Bison

---

 INSTALL           | 3 ---
 ntpd/ntp_config.c | 5 +++++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/INSTALL b/INSTALL
index 4cf928d..0a4c28f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -15,9 +15,6 @@ Python >= 2.5::
 
 bison::
    Required to build.
-   bison version 2.5 generates a compiler warning about yyparse.
-   It's used on Debian 7/wheezy and those distros derived from it which
-   include Raspbian and BeagleBone Black.
    Fedora: bison
    Debian: bison
 
diff --git a/ntpd/ntp_config.c b/ntpd/ntp_config.c
index 2aef8ac..df5b75e 100644
--- a/ntpd/ntp_config.c
+++ b/ntpd/ntp_config.c
@@ -44,6 +44,11 @@
 #include "ntp_scanner.h"
 #include "ntp_parser.tab.h"
 
+/* Bug is Bison 2.5 */
+#ifndef yyparse
+  int yyparse (void);
+#endif
+
 
 /* list of servers from command line for config_peers() */
 int	cmdline_server_count;



More information about the vc mailing list