diff options
author | Bruno Haible <bruno@clisp.org> | 2010-12-19 15:44:42 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-12-19 15:44:42 +0100 |
commit | 0d3f6696ea99b6ab11b704ad969f39b9a66a0a59 (patch) | |
tree | eee16835960853e06cddaa2bf38cc52f22c3d3c9 /lib/sys_stat.in.h | |
parent | 78c1cd0fe4160d108faf6f8e6cc702cd9d322025 (diff) | |
download | gnulib-0d3f6696ea99b6ab11b704ad969f39b9a66a0a59.tar.gz |
mknod: Avoid error in C++ mode on OSF/1 with GCC.
* lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
_GL_CXXALIAS_SYS.
Diffstat (limited to 'lib/sys_stat.in.h')
-rw-r--r-- | lib/sys_stat.in.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index f9203e5ca6..63e46efb26 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h @@ -550,7 +550,8 @@ _GL_CXXALIAS_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev)); _GL_FUNCDECL_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev) _GL_ARG_NONNULL ((1))); # endif -_GL_CXXALIAS_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev)); +/* Need to cast, because on OSF/1 5.1, the third parameter is '...'. */ +_GL_CXXALIAS_SYS_CAST (mknod, int, (char const *file, mode_t mode, dev_t dev)); # endif _GL_CXXALIASWARN (mknod); #elif defined GNULIB_POSIXCHECK |