Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
and Daniel P. Berrange <berrange@redhat.com>.
* lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
on glibc systems. The getopt-pfx-core.h file declares exactly what
unistd.h needs, nothing more.
+2017-10-09 Bruno Haible <bruno@clisp.org>
+
+ getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
+ Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
+ and Daniel P. Berrange <berrange@redhat.com>.
+ * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
+ on glibc systems. The getopt-pfx-core.h file declares exactly what
+ unistd.h needs, nothing more.
+
2017-10-08 Bruno Haible <bruno@clisp.org>
vma-iter: Improve support for FreeBSD.
/* The definition of _GL_WARN_ON_USE is copied here. */
-/* Get getopt(), optarg, optind, opterr, optopt.
- But avoid namespace pollution on glibc systems. */
-#if @GNULIB_UNISTD_H_GETOPT@ && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT
+/* Get getopt(), optarg, optind, opterr, optopt. */
+#if @GNULIB_UNISTD_H_GETOPT@ && !defined _GL_SYSTEM_GETOPT
# include <getopt-cdefs.h>
# include <getopt-pfx-core.h>
#endif