aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/os/job.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/os/job.c b/src/nvim/os/job.c
index 8fe44c7a53..038d0e3c26 100644
--- a/src/nvim/os/job.c
+++ b/src/nvim/os/job.c
@@ -1,8 +1,6 @@
#include <stdint.h>
#include <stdbool.h>
-#include <sys/wait.h>
-
#include <uv.h>
#include "nvim/os/uv_helpers.h"
@@ -20,6 +18,10 @@
#include "nvim/vim.h"
#include "nvim/memory.h"
+#ifdef HAVE_SYS_WAIT_H
+# include <sys/wait.h>
+#endif
+
// {SIGNAL}_TIMEOUT is the time (in nanoseconds) that a job has to cleanly exit
// before we send SIGNAL to it
#define TERM_TIMEOUT 1000000000