From 4f3f021d65aa712f871c498579ca549f5f5247ab Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 5 Nov 2012 18:21:18 +0200 Subject: [PATCH] Avoid compiler warnings in the MS-Windows build. nt/inc/unistd.h (tcgetpgrp, setsid): Provide prototypes. --- nt/ChangeLog | 4 ++++ nt/inc/unistd.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/nt/ChangeLog b/nt/ChangeLog index ad8c53a27b..931cb745c8 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2012-11-05 Eli Zaretskii + + * inc/unistd.h (tcgetpgrp, setsid): Provide prototypes. + 2012-11-05 Juanma Barranquero * config.nt: Sync with autogen/config.in. diff --git a/nt/inc/unistd.h b/nt/inc/unistd.h index 383bc3dece..7cab27b325 100644 --- a/nt/inc/unistd.h +++ b/nt/inc/unistd.h @@ -8,9 +8,14 @@ also includes , 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 */ -- 2.20.1