diff options
author | Bruno Haible <bruno@clisp.org> | 2010-12-31 14:17:55 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-12-31 14:17:55 +0100 |
commit | 5fe2a656ae185e5cd5588ec169246c783c9ecc48 (patch) | |
tree | 47588d7f7f90ab99a645a86eba180c12cc7ca529 /lib/fcntl.in.h | |
parent | 115dcb2a1ade67d78b430081e225f46aad742e7b (diff) | |
download | gnulib-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.h | 4 |
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. */ |