diff options
| author | Eli Zaretskii | 2012-11-05 18:21:18 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-11-05 18:21:18 +0200 |
| commit | 4f3f021d65aa712f871c498579ca549f5f5247ab (patch) | |
| tree | e850474865db621e0d4d931083fa2b44a3b57eba | |
| parent | efeccf10f015ec093d94b69ffa7eb3ad8d978295 (diff) | |
| download | emacs-4f3f021d65aa712f871c498579ca549f5f5247ab.tar.gz emacs-4f3f021d65aa712f871c498579ca549f5f5247ab.zip | |
Avoid compiler warnings in the MS-Windows build.
nt/inc/unistd.h (tcgetpgrp, setsid): Provide prototypes.
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/inc/unistd.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index ad8c53a27b8..931cb745c8b 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-11-05 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * inc/unistd.h (tcgetpgrp, setsid): Provide prototypes. | ||
| 4 | |||
| 1 | 2012-11-05 Juanma Barranquero <lekktu@gmail.com> | 5 | 2012-11-05 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * config.nt: Sync with autogen/config.in. | 7 | * config.nt: Sync with autogen/config.in. |
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 @@ | |||
| 8 | <unistd.h> also includes <stdlib.h>, so there's no need to declare | 8 | <unistd.h> also includes <stdlib.h>, so there's no need to declare |
| 9 | 'environ' here. */ | 9 | 'environ' here. */ |
| 10 | 10 | ||
| 11 | /* Privide prototypes of library functions that are emulated on w32 | ||
| 12 | and whose prototypes are usually found in unistd.h on Posix | ||
| 13 | platforms. */ | ||
| 11 | extern ssize_t readlink (const char *, char *, size_t); | 14 | extern ssize_t readlink (const char *, char *, size_t); |
| 12 | extern int symlink (char const *, char const *); | 15 | extern int symlink (char const *, char const *); |
| 13 | extern int setpgid (pid_t, pid_t); | 16 | extern int setpgid (pid_t, pid_t); |
| 14 | extern pid_t getpgrp (void); | 17 | extern pid_t getpgrp (void); |
| 18 | extern pid_t setsid (void); | ||
| 19 | extern pid_t tcgetpgrp (int); | ||
| 15 | 20 | ||
| 16 | #endif /* _UNISTD_H */ | 21 | #endif /* _UNISTD_H */ |