Avoid compiler warnings in the MS-Windows build.

nt/inc/unistd.h (tcgetpgrp, setsid): Provide prototypes.
This commit is contained in:
Eli Zaretskii 2012-11-05 18:21:18 +02:00
parent efeccf10f0
commit 4f3f021d65
2 changed files with 9 additions and 0 deletions

View 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.

View 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 */