Skip to content

Commit 6300cad

Browse files
committed
FreeBSD 14.2: don't require inotify_init which isn't linked.
#1459
1 parent db258be commit 6300cad

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
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>)

submodules/lev/lev/vendor/ev.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,7 @@
507507
#endif
508508

509509
#if EV_USE_INOTIFY
510-
# ifdef __FreeBSD__
511-
# include <sys/param.h>
512-
# include <sys/mount.h>
513-
# else
514-
# include <sys/statfs.h>
515-
# endif
510+
# include <sys/statfs.h>
516511
# include <sys/inotify.h>
517512
/* some very old inotify.h headers don't have IN_DONT_FOLLOW */
518513
# ifndef IN_DONT_FOLLOW

0 commit comments

Comments
 (0)