* lib/getopt-pfx-core.h: On AIX, HP-UX, Solaris, QNX, include <stdio.h>
first.
+2024-09-23 Bruno Haible <bruno@clisp.org>
+
+ getopt-posix: Fix compilation error in C++ mode (regression 2024-09-21).
+ * lib/getopt-pfx-core.h: On AIX, HP-UX, Solaris, QNX, include <stdio.h>
+ first.
+
2024-09-21 Bruno Haible <bruno@clisp.org>
getopt-posix, crypto/md5-buffer: Fix __GNUC_PREREQ re clang.
functions and variables. Renaming avoids problems with some
compilers and linkers. */
#ifdef __GETOPT_PREFIX
+
+/* Include platform-dependent header files that may declare getopt() and
+ friends. */
+# if defined _AIX || defined __hpux || defined __sun || defined __QNX__
+# include <stdio.h>
+# endif
+
# ifndef __GETOPT_ID
# define __GETOPT_CONCAT(x, y) x ## y
# define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y)