# HG changeset patch # User Brian Utterback # Date 1492128644 25200 # Node ID e2e23e69f5e71815068daf4c611317493c6b548b # Parent f5d146a3f5e67a6be83d287d9cc60d7043239a5e 25729484 ntpq --version broken in s11.3 diff -r f5d146a3f5e6 -r e2e23e69f5e7 components/ntp/patches/15-nooptarg.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/ntp/patches/15-nooptarg.patch Thu Apr 13 17:10:44 2017 -0700 @@ -0,0 +1,22 @@ +This bug has been submitted to the NTP community as NTP bug 3406. +http://bugs.ntp.org/show_bug.cgi?id=3406 +The fix in this patch is specific to the build of the bundled version of NTP +for Solaris. It patches the config.h.in file. A proper fix would replicate +the test in the sntp/configure file in the top level configure file. This patch +may be removed when upgrading to a version of NTP that has a fix for bug 3406 +included. + + +*** config.h.in +--- config.h.in +*************** typedef unsigned int uintptr_t; +*** 1741,1746 **** +--- 1741,1748 ---- + /* Define to rpl_vsnprintf if the replacement function should be used. */ + #undef vsnprintf + ++ #define NO_OPTIONAL_OPT_ARGS 1 ++ + + #ifndef MPINFOU_PREDECLARED + # define MPINFOU_PREDECLARED diff -r f5d146a3f5e6 -r e2e23e69f5e7 components/ntp/test/results-64.master --- a/components/ntp/test/results-64.master Wed Apr 26 14:53:43 2017 -0700 +++ b/components/ntp/test/results-64.master Thu Apr 13 17:10:44 2017 -0700 @@ -3251,6 +3251,8 @@ /* Define to rpl_vsnprintf if the replacement function should be used. */ /* #undef vsnprintf */ +#define NO_OPTIONAL_OPT_ARGS 1 + #ifndef MPINFOU_PREDECLARED # define MPINFOU_PREDECLARED