summaryrefslogtreecommitdiff
path: root/nt/inc
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-11-05 18:21:18 +0200
committerEli Zaretskii <eliz@gnu.org>2012-11-05 18:21:18 +0200
commit4f3f021d65aa712f871c498579ca549f5f5247ab (patch)
treee850474865db621e0d4d931083fa2b44a3b57eba /nt/inc
parentefeccf10f015ec093d94b69ffa7eb3ad8d978295 (diff)
downloademacs-4f3f021d65aa712f871c498579ca549f5f5247ab.tar.gz
Avoid compiler warnings in the MS-Windows build.
nt/inc/unistd.h (tcgetpgrp, setsid): Provide prototypes.
Diffstat (limited to 'nt/inc')
-rw-r--r--nt/inc/unistd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nt/inc/unistd.h b/nt/inc/unistd.h
index 383bc3decec..7cab27b325f 100644
--- a/nt/inc/unistd.h
+++ b/nt/inc/unistd.h
@@ -8,9 +8,14 @@
<unistd.h> also includes <stdlib.h>, so there's no need to declare
'environ' here. */
+/* Privide prototypes of library functions that are emulated on w32
+ and whose prototypes are usually found in unistd.h on Posix
+ platforms. */
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);
+extern pid_t setsid (void);
+extern pid_t tcgetpgrp (int);
#endif /* _UNISTD_H */