Master Does Not Compile on Centos 6

Joel Sherrill joel at
Thu Jun 30 20:36:17 UTC 2016


This likely fails on other platforms since it is a mismatched brace:

../../ntpd/ntp_config.c: In function ‘config_peers’:
../../ntpd/ntp_config.c:3207: error: ‘else’ without a previous ‘if’
../../ntpd/ntp_config.c: At top level:
../../ntpd/ntp_config.c:3252: error: expected identifier or ‘(’ before ‘}’

The fix appears to be pretty simple. The ifdef and { are swapped

$ git diff
diff --git a/ntpd/ntp_config.c b/ntpd/ntp_config.c
index cf2a6f5..d0eeb26 100644
--- a/ntpd/ntp_config.c
+++ b/ntpd/ntp_config.c
@@ -3169,8 +3169,8 @@ config_peers(
                                if (ISREFCLOCKADR(&peeraddr))
-#ifdef REFCLOCK
+#ifdef REFCLOCK
                                        uint8_t clktype;
                                        int unit;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the devel mailing list