stdlib, sys_wait: Avoid compilation error on mingw.
* lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
author |
Simon Josefsson <simon@josefsson.org> |
date |
Sun, 26 Sep 2010 14:27:32 +0200 |
parents |
b16d13c70a22 |
children |
d20b18f4dd67 |
files |
ChangeLog lib/sys_wait.in.h |
diffstat |
2 files changed, 7 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-26 Simon Josefsson <simon@josefsson.org>
+
+ stdlib, sys_wait: Avoid compilation error on mingw.
+ * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
+
2010-09-26 Bruno Haible <bruno@clisp.org>
stdlib tests: Avoid code duplication.
--- a/lib/sys_wait.in.h
+++ b/lib/sys_wait.in.h
@@ -79,7 +79,8 @@
#else
/* Native Windows API. */
-# include <process.h>
+# include <process.h> /* for _cwait, WAIT_CHILD */
+# include <signal.h> /* for SIGTERM */
# define waitpid(pid,statusp,options) _cwait (statusp, pid, WAIT_CHILD)