[Git][NTPsec/ntpsec][master] Address GitLab issue #406: ntpd build fails: ...

Eric S. Raymond gitlab at mg.gitlab.com
Sun Nov 5 00:41:17 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
0e6ea869 by Eric S. Raymond at 2017-11-04T20:39:51-04:00
Address GitLab issue #406: ntpd build fails: ...

...undefined reference to `addr_from_typeunit'

- - - - -


1 changed file:

- ntpd/ntp_parser.y


Changes:

=====================================
ntpd/ntp_parser.y
=====================================
--- a/ntpd/ntp_parser.y
+++ b/ntpd/ntp_parser.y
@@ -491,9 +491,13 @@ unpeer_command
 		{
 			unpeer_node *my_node;
 
+#ifdef REFCLOCK
 			my_node = create_unpeer_node(addr_from_typeunit($3, $4));
 			if (my_node)
 				APPEND_G_FIFO(cfgt.unpeers, my_node);
+#else
+			yyerror("no refclock support was compiled in.");
+#endif /* REFCLOCK */
 		}
 	;	
 unpeer_keyword	



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0e6ea86988ee7b5aece3b8ce4bef455ba1de995f
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/20171105/362a5cbd/attachment.html>


More information about the vc mailing list