25729484 ntpq --version broken in s11.3
authorBrian Utterback <brian.utterback@oracle.com>
Thu, 13 Apr 2017 17:10:44 -0700
changeset 7955 e2e23e69f5e7
parent 7954 f5d146a3f5e6
child 7956 4f61047bec23
25729484 ntpq --version broken in s11.3
components/ntp/patches/15-nooptarg.patch
components/ntp/test/results-64.master
--- /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
--- 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