stdlib, sys_wait: Avoid compilation error on mingw.
authorSimon Josefsson <simon@josefsson.org>
Sun, 26 Sep 2010 12:27:32 +0000 (14:27 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Sep 2010 12:27:32 +0000 (14:27 +0200)
* lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.

ChangeLog
lib/sys_wait.in.h

index e570eb1..959a0af 100644 (file)
--- 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.
index 6699c61..d30a3e6 100644 (file)
@@ -79,7 +79,8 @@ extern "C" {
 #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)