blob: fa0be0ade537126882435a29c0891c7667a6358a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- fsmonitor/linux/inotify_stubs.c.orig 2017-03-23 16:25:03 UTC
+++ fsmonitor/linux/inotify_stubs.c
@@ -27,9 +27,13 @@
#include <caml/signals.h>
#include <caml/callback.h>
+#include <sys/param.h>
+
+#if !defined(__FreeBSD__)
#include <features.h>
+#endif
-#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 4
+#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 4) || defined(__FreeBSD__)
#define GLIBC_SUPPORT_INOTIFY 1
#else
#define GLIBC_SUPPORT_INOTIFY 0
|