file_watch: make sure sys/types.h is included first
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
de3db23e23
commit
42cd5bca48
|
@ -3,8 +3,10 @@
|
|||
#ifdef HAS_INOTIFY
|
||||
#include <sys/inotify.h>
|
||||
#elif HAS_KQUEUE
|
||||
#include <sys/event.h>
|
||||
// clang-format off
|
||||
#include <sys/types.h>
|
||||
// clang-format on
|
||||
#include <sys/event.h>
|
||||
#undef EV_ERROR // Avoid clashing with libev's EV_ERROR
|
||||
#include <fcntl.h> // For O_RDONLY
|
||||
#include <sys/time.h> // For struct timespec
|
||||
|
|
Loading…
Reference in New Issue