From: Bruno Haible Date: Sat, 3 Apr 2010 10:30:09 +0000 (+0200) Subject: unistd: Fix C++ test error on mingw. X-Git-Tag: v0.1~4371 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=cba80c6666903c7e3dd20c73dc47cd39de29d211;p=gnulib.git unistd: Fix C++ test error on mingw. --- diff --git a/ChangeLog b/ChangeLog index d785350dc..199877775 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2010-04-03 Bruno Haible + unistd: Fix C++ test error on mingw. + * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST. + +2010-04-03 Bruno Haible + Update doc regarding mingw. * doc/glibc-functions/openpty.texi: Update regarding mingw. * doc/glibc-functions/login_tty.texi: Likewise. diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 9a37ddbef..cc8a629ef 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