Skip to content

Commit 9e50f23

Browse files
authored
FreeBSD 14.2: don't require inotify_init which isn't linked. (#1466)
#1459
1 parent 40c5106 commit 9e50f23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

submodules/lev/lev/src/config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@
4747
#endif
4848

4949
#if __has_include(<sys/inotify.h>)
50-
#define HAVE_INOTIFY_INIT 1
50+
# if __FreeBSD__
51+
// inotify_init seems to require linking against glib
52+
# else
53+
# define HAVE_INOTIFY_INIT 1
54+
# endif
5155
#endif
5256

5357
#if __has_include(<linux/fs.h>)

0 commit comments

Comments
 (0)