From: Alexander Moisseev Date: Mon, 8 Dec 2025 08:02:08 +0000 (+0300) Subject: [Fix] FreeBSD 15 inotify build compatibility X-Git-Tag: 3.14.2~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aed436442b3c4de09948002e72f09c103bd5cf3e;p=thirdparty%2Frspamd.git [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. --- 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