summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup/execute.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/setup/execute.c b/setup/execute.c
index 8f60288b..800e33b7 100644
--- a/setup/execute.c
+++ b/setup/execute.c
@@ -27,7 +27,13 @@
#include <string.h>
#include <sys/types.h>
-#include <sys/wait.h>
+
+#ifndef WINDOWS
+ #include <sys/wait.h>
+#else
+ #define WEXITSTATUS(stat_val) ((stat_val) & 255)
+ #define WIFEXITED(stat_val) (((stat_val) & 0xff00) == 0)
+#endif
#include "textscreen.h"