]> code.delx.au - gnu-emacs/commitdiff
Avoid compiler warnings in the MS-Windows build.
authorEli Zaretskii <eliz@gnu.org>
Mon, 5 Nov 2012 16:21:18 +0000 (18:21 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 5 Nov 2012 16:21:18 +0000 (18:21 +0200)
 nt/inc/unistd.h (tcgetpgrp, setsid): Provide prototypes.

nt/ChangeLog
nt/inc/unistd.h

index ad8c53a27b85e68a03484fc502229f5e835c5329..931cb745c8b66d51d8e1fb3240d3b2ce79fd1d6f 100644 (file)
@@ -1,3 +1,7 @@
+2012-11-05  Eli Zaretskii  <eliz@gnu.org>
+
+       * inc/unistd.h (tcgetpgrp, setsid): Provide prototypes.
+
 2012-11-05  Juanma Barranquero  <lekktu@gmail.com>
 
        * config.nt: Sync with autogen/config.in.
index 383bc3dececd54a4c982e6f1c9f7a9e3237e6e6c..7cab27b325fab7f137821e89e724b121c92d3042 100644 (file)
@@ -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 */