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 d785350..1998777 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
        * doc/glibc-functions/openpty.texi: Update regarding mingw.
        * doc/glibc-functions/login_tty.texi: Likewise.
index 9a37ddb..cc8a629 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