From cba80c6666903c7e3dd20c73dc47cd39de29d211 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 3 Apr 2010 12:30:09 +0200 Subject: [PATCH] unistd: Fix C++ test error on mingw. --- ChangeLog | 5 +++++ lib/unistd.in.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d785350dc9..1998777751 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. 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 -- 2.30.2