components/ntp/patches/15-nooptarg.patch
author Brian Utterback <brian.utterback@oracle.com>
Thu, 13 Apr 2017 17:10:44 -0700
changeset 7955 e2e23e69f5e7
permissions -rw-r--r--
25729484 ntpq --version broken in s11.3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7955
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     1
This bug has been submitted to the NTP community as NTP bug 3406.
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     2
http://bugs.ntp.org/show_bug.cgi?id=3406
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     3
The fix in this patch is specific to the build of the bundled version of NTP
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     4
for Solaris. It patches the config.h.in file. A proper fix would replicate
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     5
the test in the sntp/configure file in the top level configure file. This patch
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     6
may be removed when upgrading to a version of NTP that has a fix for bug 3406
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     7
included.
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     8
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     9
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    10
*** config.h.in
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    11
--- config.h.in
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    12
*************** typedef unsigned int	uintptr_t;
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    13
*** 1741,1746 ****
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    14
--- 1741,1748 ----
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    15
  /* Define to rpl_vsnprintf if the replacement function should be used. */
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    16
  #undef vsnprintf
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    17
  
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    18
+ #define NO_OPTIONAL_OPT_ARGS 1
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    19
+ 
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    20
  
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    21
  #ifndef MPINFOU_PREDECLARED
e2e23e69f5e7 25729484 ntpq --version broken in s11.3
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    22
  # define MPINFOU_PREDECLARED