]> Savannah Git Hosting - gnulib.git/commitdiff
getopt-posix: port to glibc 2.25.90
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Jun 2017 22:53:09 +0000 (15:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Jun 2017 22:53:41 +0000 (15:53 -0700)
Problem reported by Daniel P. Berrange in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00003.html
* lib/getopt-pfx-core.h (_GETOPT_CORE_H):
* lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
#undef if __GETOPT_PREFIX is defined.

ChangeLog
lib/getopt-pfx-core.h
lib/getopt-pfx-ext.h

index 0e32d27a074409da477fa63594bb42d69547b82d..017ec4b1a714427b63bf3a564c44a358d9f89a9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       getopt-posix: port to glibc 2.25.90
+       Problem reported by Daniel P. Berrange in:
+       http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00003.html
+       * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
+       * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
+       #undef if __GETOPT_PREFIX is defined.
+
 2017-06-11  Bruno Haible  <bruno@clisp.org>
 
        strtod-obsolete: Fix license.
index 155c11612d1188ce1243ac5fc6b30db081c3fdc4..6ad0da683b427bc5a7e3b20e2d26c11492a0083d 100644 (file)
 # define opterr __GETOPT_ID (opterr)
 # define optind __GETOPT_ID (optind)
 # define optopt __GETOPT_ID (optopt)
+
+/* The system's getopt.h may have already included getopt-core.h to
+   declare the unprefixed identifiers.  Undef _GETOPT_CORE_H so that
+   getopt-core.h declares them with prefixes.  */
+# undef _GETOPT_CORE_H
 #endif
 
 #include <getopt-core.h>
index d960bb34ee09b61a098884683bb9ecf433179cff..c5ac52202b2eae396bd9b2af21b802bb7ab84d2f 100644 (file)
 # define getopt_long_only __GETOPT_ID (getopt_long_only)
 # define option __GETOPT_ID (option)
 # define _getopt_internal __GETOPT_ID (getopt_internal)
+
+/* The system's getopt.h may have already included getopt-ext.h to
+   declare the unprefixed identifiers.  Undef _GETOPT_EXT_H so that
+   getopt-ext.h declares them with prefixes.  */
+# undef _GETOPT_EXT_H
 #endif
 
 /* Standalone applications get correct prototypes for getopt_long and