From 0d3f6696ea99b6ab11b704ad969f39b9a66a0a59 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 19 Dec 2010 15:44:42 +0100 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ lib/sys_stat.in.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 204f98c49..ead96ea3d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2010-12-19 Bruno Haible + 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. + +2010-12-19 Bruno Haible + stdbool: Relax test. * tests/test-stdbool.c (e): Don't require that casts from a variable's address to 'bool' work in static initializer, for compilers other than diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index f9203e5ca..63e46efb2 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 -- 2.11.0