From 42cd5bca483bb9e0f2ed0b1acb326738758ec41c Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 11 Nov 2019 21:59:25 +0000 Subject: [PATCH] file_watch: make sure sys/types.h is included first Signed-off-by: Yuxuan Shui --- src/file_watch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/file_watch.c b/src/file_watch.c index 2aa7cf6..ed8b5c3 100644 --- a/src/file_watch.c +++ b/src/file_watch.c @@ -3,8 +3,10 @@ #ifdef HAS_INOTIFY #include #elif HAS_KQUEUE -#include +// clang-format off #include +// clang-format on +#include #undef EV_ERROR // Avoid clashing with libev's EV_ERROR #include // For O_RDONLY #include // For struct timespec