From aed436442b3c4de09948002e72f09c103bd5cf3e Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Mon, 8 Dec 2025 11:02:08 +0300 Subject: [PATCH] [Fix] FreeBSD 15 inotify build compatibility FreeBSD 15.0 introduced native inotify support, which causes libev to enable EV_USE_INOTIFY. On FreeBSD, struct statfs is defined in rather than . Note: This fix obsoletes the corresponding patch file in the FreeBSD `mail/rspamd` and `mail/rspamd-devel` ports. --- contrib/libev/ev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/libev/ev.c b/contrib/libev/ev.c index 0dec50bcdb..63ab289302 100644 --- a/contrib/libev/ev.c +++ b/contrib/libev/ev.c @@ -527,7 +527,11 @@ #endif #if EV_USE_INOTIFY +# ifdef __FreeBSD__ +# include +# else # include +# endif # include /* some very old inotify.h headers don't have IN_DONT_FOLLOW */ # ifndef IN_DONT_FOLLOW -- 2.47.3