From: Bruno Haible Date: Fri, 31 Dec 2010 13:17:55 +0000 (+0100) Subject: open: Avoid C++ error on HP-UX 11. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fe2a656ae185e5cd5588ec169246c783c9ecc48;p=pspp open: Avoid C++ error on HP-UX 11. * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX. --- diff --git a/ChangeLog b/ChangeLog index 865705d3dc..5810281ee2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-12-31 Bruno Haible + + open: Avoid C++ error on HP-UX 11. + * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX. + 2010-12-31 Bruno Haible time_r: Add missing declarations on HP-UX 11. 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. */