summaryrefslogtreecommitdiff
path: root/lib/unistd.in.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-09-03 16:08:32 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-09-03 16:08:32 -0700
commit7f59d9c856de33b97bc3f2708dcc8dadf24ee040 (patch)
treeeb0c7bb18b57498965581881a5cccd5f1de48166 /lib/unistd.in.h
parentb49e353d9d01adbe60bc5d0b1658b4ef978b0b06 (diff)
downloademacs-7f59d9c856de33b97bc3f2708dcc8dadf24ee040.tar.gz
Merge from gnulib.
Diffstat (limited to 'lib/unistd.in.h')
-rw-r--r--lib/unistd.in.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index 769ecf0d43f..119cd142f43 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -85,7 +85,8 @@
/* mingw declares getcwd in <io.h>, not in <unistd.h>. */
#if ((@GNULIB_GETCWD@ || defined GNULIB_POSIXCHECK) \
&& ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
-# include <io.h>
+# include <io.h> /* mingw32, mingw64 */
+# include <direct.h> /* mingw64 */
#endif
/* AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>.