MS-Windows followup for 2013-07-07T18:00:14Z!eggert@cs.ucla.edu.
[bpt/emacs.git] / nt / inc / unistd.h
index 3fd9289..8ad8cf2 100644 (file)
@@ -3,6 +3,9 @@
 #ifndef _UNISTD_H
 #define _UNISTD_H
 
+#include <sys/types.h>
+#include <pwd.h>
+
 /* On Microsoft platforms, <stdlib.h> declares 'environ'; on POSIX
    platforms, <unistd.h> does.  Every file in Emacs that includes
    <unistd.h> also includes <stdlib.h>, so there's no need to declare
@@ -27,8 +30,9 @@ extern int faccessat (int, char const *, int, int);
 #define AT_EACCESS 4
 #define AT_SYMLINK_NOFOLLOW 4096
 
-#define O_NOCTTY 0
 #define O_IGNORE_CTTY 0
+#define O_NOCTTY 0
+#define O_NOFOLLOW 0
 
 /* This is normally on stdlib.h, but we don't override that header.  */
 extern int unsetenv (const char *);