summaryrefslogtreecommitdiff
path: root/src/fs_event
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs_event')
-rw-r--r--src/fs_event/fs_event.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs_event/fs_event.h b/src/fs_event/fs_event.h
index 1e99b62..2cfef07 100644
--- a/src/fs_event/fs_event.h
+++ b/src/fs_event/fs_event.h
@@ -2,12 +2,12 @@
#include <al/str.h>
-#ifndef _WIN32
-#include <sys/inotify.h>
-#define NNWT_CLOSE_WRITE IN_CLOSE_WRITE
-#else
+#ifdef NAUNET_ON_WINDOWS
struct inotify_event {};
#define NNWT_CLOSE_WRITE 0
+#else
+#include <sys/inotify.h>
+#define NNWT_CLOSE_WRITE IN_CLOSE_WRITE
#endif
#include "../loop.h"