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.
This commit is contained in:
Rui Abreu Ferreira
2015-04-10 11:31:08 +01:00
committed by Michael Reed
parent e1f83d304d
commit ac42fb8ca7

View File

@@ -1,8 +1,6 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <sys/wait.h>
#include <uv.h> #include <uv.h>
#include "nvim/os/uv_helpers.h" #include "nvim/os/uv_helpers.h"
@@ -20,6 +18,10 @@
#include "nvim/vim.h" #include "nvim/vim.h"
#include "nvim/memory.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 // {SIGNAL}_TIMEOUT is the time (in nanoseconds) that a job has to cleanly exit
// before we send SIGNAL to it // before we send SIGNAL to it
#define TERM_TIMEOUT 1000000000 #define TERM_TIMEOUT 1000000000