From: Bruno Haible <bruno@clisp.org> Date: Sat, 3 Apr 2010 10:30:09 +0000 (+0200) Subject: unistd: Fix C++ test error on mingw. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba80c6666903c7e3dd20c73dc47cd39de29d211;p=pspp unistd: Fix C++ test error on mingw. --- diff --git a/ChangeLog b/ChangeLog index d785350dc9..1998777751 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-03 Bruno Haible <bruno@clisp.org> + + unistd: Fix C++ test error on mingw. + * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST. + 2010-04-03 Bruno Haible <bruno@clisp.org> Update doc regarding mingw. diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 9a37ddbef8..cc8a629ef1 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -525,7 +525,9 @@ _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - " _GL_FUNCDECL_RPL (getcwd, char *, (char *buf, size_t size)); _GL_CXXALIAS_RPL (getcwd, char *, (char *buf, size_t size)); # else -_GL_CXXALIAS_SYS (getcwd, char *, (char *buf, size_t size)); +/* Need to cast, because on mingw, the second parameter is + int size. */ +_GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size)); # endif _GL_CXXALIASWARN (getcwd); #elif defined GNULIB_POSIXCHECK