From: Paul Eggert Date: Sat, 29 Apr 2017 18:09:39 +0000 (-0700) Subject: getopt: port to Solaris 10 with circa-1997 glibc getopt.h X-Git-Tag: v1.0~6235 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f3f95f863f63eec80bfe4228719fb0afada5fa05;p=gnulib.git getopt: port to Solaris 10 with circa-1997 glibc getopt.h Problem reported by Assaf Gordon and Gavin Smith in: http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00157.html * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]: #define this, too. --- diff --git a/ChangeLog b/ChangeLog index d641fb7841..5640abe74a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2017-04-29 Paul Eggert + + getopt: port to Solaris 10 with circa-1997 glibc getopt.h + Problem reported by Assaf Gordon and Gavin Smith in: + http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00157.html + * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]: + #define this, too. + 2017-04-29 Bruno Haible strerror_r-posix: Fixes for MSVC 14. diff --git a/lib/getopt-pfx-ext.h b/lib/getopt-pfx-ext.h index 2f86b23169..d960bb34ee 100644 --- a/lib/getopt-pfx-ext.h +++ b/lib/getopt-pfx-ext.h @@ -40,9 +40,11 @@ # undef getopt_long # undef getopt_long_only # undef option +# undef _getopt_internal # define getopt_long __GETOPT_ID (getopt_long) # define getopt_long_only __GETOPT_ID (getopt_long_only) # define option __GETOPT_ID (option) +# define _getopt_internal __GETOPT_ID (getopt_internal) #endif /* Standalone applications get correct prototypes for getopt_long and