mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
e1f83d304d
commit
ac42fb8ca7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user