From ac42fb8ca729ecac3bc3c43d4f68ce79ca3a5faa Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Fri, 10 Apr 2015 11:31:08 +0100 Subject: Add guard for sys/wait.h header in job.c #2686 The sys/wait.h include was moved after the vim.h include, since the include guards are defined in config.h the guards cannot be used earlier. --- src/nvim/os/job.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 #include -#include - #include #include "nvim/os/uv_helpers.h" @@ -20,6 +18,10 @@ #include "nvim/vim.h" #include "nvim/memory.h" +#ifdef HAVE_SYS_WAIT_H +# include +#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 -- cgit