summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 5f8d9b32..48a94677 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -58,7 +58,11 @@
#include <stdlib.h>
#include <sys/types.h>
+#ifdef __linux__
#include <wait.h>
+#else
+#include <sys/wait.h>
+#endif
#include <stdio.h>
#include <string.h>
#include <signal.h>