unistd: Fix C++ test error on mingw.
authorBruno Haible <bruno@clisp.org>
Sat, 3 Apr 2010 10:30:09 +0000 (12:30 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 3 Apr 2010 10:30:09 +0000 (12:30 +0200)
ChangeLog
lib/unistd.in.h

index d785350dc976c0364f3454e3deee675b242d3b21..19987777512f6ca273b5e7e0f1abfa589ca765fc 100644 (file)
--- 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.
index 9a37ddbef8d1f58fb5b087c33b6c61eff4894352..cc8a629ef19709efeecb754589ffe0ba3f233bbd 100644 (file)
@@ -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