Fix MS-Windows build broken by fixing bug #12776 on Posix platforms.
[bpt/emacs.git] / nt / inc / unistd.h
index 9bf9cb7..383bc3d 100644 (file)
@@ -1,4 +1,16 @@
 /* Fake unistd.h: config.h already provides most of the relevant things. */
 
-/* arch-tag: 68600bcd-3097-4501-a559-551db3cdb9fd
-   (do not change this comment) */
+#ifndef _UNISTD_H
+#define _UNISTD_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
+   'environ' here.  */
+
+extern ssize_t readlink (const char *, char *, size_t);
+extern int symlink (char const *, char const *);
+extern int setpgid (pid_t, pid_t);
+extern pid_t getpgrp (void);
+
+#endif /* _UNISTD_H */