+2019-12-08 Bruno Haible <bruno@clisp.org>
+
+ Fix compilation error in C++ mode on HP-UX 11.
+ * lib/unistd.in.h (getpagesize): Declare on HP-UX.
+ * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
+
2019-12-08 Bruno Haible <bruno@clisp.org>
Fix compilation errors on HP-UX 11/ia64.
This function is missing on some platforms:
MSVC 14, Android 4.4.
@item
+This function is not declared on some platforms:
+HP-UX 11 with compiler option @code{-D_XOPEN_SOURCE=600}.
+@item
This function is broken on some platforms:
mingw.
@end itemize
_GL_FUNCDECL_RPL (getpagesize, int, (void));
_GL_CXXALIAS_RPL (getpagesize, int, (void));
# else
+/* On HP-UX, getpagesize exists, but it is not declared in <unistd.h> even if
+ the compiler options -D_HPUX_SOURCE -D_XOPEN_SOURCE=600 are used. */
+# if defined __hpux
+_GL_FUNCDECL_SYS (getpagesize, int, (void));
+# endif
# if !@HAVE_GETPAGESIZE@
# if !defined getpagesize
/* This is for POSIX systems. */