From: Bruno Haible Date: Sun, 24 Nov 2019 12:28:03 +0000 (+0100) Subject: Fix errors in C++ mode on Cygwin. X-Git-Tag: v1.0~4577 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c67f26eb8394a4e3f63df1e84f777182f13f2f01;p=gnulib.git Fix errors in C++ mode on Cygwin. * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS. --- diff --git a/ChangeLog b/ChangeLog index 5c2f5c5869..d70a898353 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-11-24 Bruno Haible + + Fix errors in C++ mode on Cygwin. + * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of + _GL_CXXALIAS_SYS. + 2019-11-24 Bruno Haible time_r: Fix for mingw (regression from 2019-11-16). diff --git a/lib/sys_wait.in.h b/lib/sys_wait.in.h index a4c52bb909..52b13b3303 100644 --- a/lib/sys_wait.in.h +++ b/lib/sys_wait.in.h @@ -114,7 +114,9 @@ # if defined _WIN32 && ! defined __CYGWIN__ _GL_FUNCDECL_SYS (waitpid, pid_t, (pid_t pid, int *statusp, int options)); # endif -_GL_CXXALIAS_SYS (waitpid, pid_t, (pid_t pid, int *statusp, int options)); +/* Need to cast, because on Cygwin, the second parameter is + __wait_status_ptr_t statusp. */ +_GL_CXXALIAS_SYS_CAST (waitpid, pid_t, (pid_t pid, int *statusp, int options)); _GL_CXXALIASWARN (waitpid); #elif defined GNULIB_POSIXCHECK # undef waitpid