getcwd: fix compilation on mingw64
authorEric Blake <eblake@redhat.com>
Wed, 17 Aug 2011 20:13:35 +0000 (14:13 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 17 Aug 2011 20:36:54 +0000 (14:36 -0600)
commit07809063056aef043ba738ab8229042f1ffc9659
tree7e232de96ddcc0d3a5e06c27ee7cd5bba00702a3
parent8ea6bf995cf561a525abc8f716e98c8a9b917496
getcwd: fix compilation on mingw64

Mingw 64 added <direct.h> as a place that declared getcwd.  It is
a non-standard header, but since we already include it in the
replacement for <sys/stat.h>, we must also include it in the
replacement for <unistd.h> to avoid compilation problems.

* lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
getcwd.
Reported by Marc-AndrĂ© Lureau.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/unistd.in.h