#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
#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 *);