Skip to content

Commit

Permalink
FreeBSD 14.2: don't require inotify_init which isn't linked.
Browse files Browse the repository at this point in the history
  • Loading branch information
mro committed Feb 6, 2025
1 parent db258be commit 6300cad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 5 additions & 1 deletion submodules/lev/lev/src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@
#endif

#if __has_include(<sys/inotify.h>)
#define HAVE_INOTIFY_INIT 1
# if __FreeBSD__
// inotify_init seems to require linking against glib
# else
# define HAVE_INOTIFY_INIT 1
# endif
#endif

#if __has_include(<linux/fs.h>)
Expand Down
7 changes: 1 addition & 6 deletions submodules/lev/lev/vendor/ev.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,7 @@
#endif

#if EV_USE_INOTIFY
# ifdef __FreeBSD__
# include <sys/param.h>
# include <sys/mount.h>
# else
# include <sys/statfs.h>
# endif
# include <sys/statfs.h>
# include <sys/inotify.h>
/* some very old inotify.h headers don't have IN_DONT_FOLLOW */
# ifndef IN_DONT_FOLLOW
Expand Down

0 comments on commit 6300cad

Please sign in to comment.