From 07809063056aef043ba738ab8229042f1ffc9659 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 17 Aug 2011 14:13:35 -0600 Subject: [PATCH] getcwd: fix compilation on mingw64 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Mingw 64 added as a place that declared getcwd. It is a non-standard header, but since we already include it in the replacement for , we must also include it in the replacement for to avoid compilation problems. * lib/unistd.in.h (includes) [mingw]: Include for getcwd. Reported by Marc-André Lureau. Signed-off-by: Eric Blake --- ChangeLog | 5 +++++ lib/unistd.in.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 770bdf77b..7c8781f62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-08-17 Eric Blake + getcwd: fix compilation on mingw64 + * lib/unistd.in.h (includes) [mingw]: Include for + getcwd. + Reported by Marc-André Lureau. + pipe2: silence compiler warning * lib/pipe2.c (pipe2): Hide label if it is not used. diff --git a/lib/unistd.in.h b/lib/unistd.in.h index e612fb37d..c1cfb5426 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -85,7 +85,8 @@ /* mingw declares getcwd in , not in . */ #if ((@GNULIB_GETCWD@ || defined GNULIB_POSIXCHECK) \ && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) -# include +# include /* mingw32, mingw64 */ +# include /* mingw64 */ #endif /* AIX and OSF/1 5.1 declare getdomainname in , not in . -- 2.11.0