summaryrefslogtreecommitdiff
path: root/lib/fcntl.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-12-31 14:17:55 +0100
committerBruno Haible <bruno@clisp.org>2010-12-31 14:17:55 +0100
commit5fe2a656ae185e5cd5588ec169246c783c9ecc48 (patch)
tree47588d7f7f90ab99a645a86eba180c12cc7ca529 /lib/fcntl.in.h
parent115dcb2a1ade67d78b430081e225f46aad742e7b (diff)
downloadgnulib-5fe2a656ae185e5cd5588ec169246c783c9ecc48.tar.gz
open: Avoid C++ error on HP-UX 11.
* lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
Diffstat (limited to 'lib/fcntl.in.h')
-rw-r--r--lib/fcntl.in.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index 73c5f1ef03..5f9eba59e7 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -107,7 +107,11 @@ _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...));
# else
_GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...));
# endif
+/* On HP-UX 11, in C++ mode, open() is defined as an inline function with a
+ default argument. _GL_CXXALIASWARN does not work in this case. */
+# if !defined __hpux
_GL_CXXALIASWARN (open);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef open
/* Assume open is always declared. */