git: 8008d61005a9 - main - devel/pecl-ev: unbreak build on -current after inotify import

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Mon, 14 Jul 2025 20:12:51 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8008d61005a971529d0b0c9351399ab75d9f8dc6

commit 8008d61005a971529d0b0c9351399ab75d9f8dc6
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-07-14 20:11:52 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-07-14 20:12:45 +0000

    devel/pecl-ev: unbreak build on -current after inotify import
---
 devel/pecl-ev/files/patch-libev_ev.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/devel/pecl-ev/files/patch-libev_ev.c b/devel/pecl-ev/files/patch-libev_ev.c
new file mode 100644
index 000000000000..0d6e8366e6e3
--- /dev/null
+++ b/devel/pecl-ev/files/patch-libev_ev.c
@@ -0,0 +1,24 @@
+--- libev/ev.c.orig	2024-09-03 13:53:22 UTC
++++ libev/ev.c
+@@ -490,7 +490,11 @@
+ #endif
+ 
+ #if EV_USE_INOTIFY
+-# include <sys/statfs.h>
++# ifdef __FreeBSD__
++#  include <sys/mount.h>
++# else
++#  include <sys/statfs.h>
++# endif
+ # include <sys/inotify.h>
+ /* some very old inotify.h headers don't have IN_DONT_FOLLOW */
+ # ifndef IN_DONT_FOLLOW
+@@ -2922,7 +2926,7 @@ ev_recommended_backends (void) EV_NOEXCEPT
+ {
+   unsigned int flags = ev_supported_backends ();
+ 
+-#ifndef __NetBSD__
++#if !defined(__NetBSD__) && !defined(__FreeBSD__)
+   /* kqueue is borked on everything but netbsd apparently */
+   /* it usually doesn't work correctly on anything but sockets and pipes */
+   flags &= ~EVBACKEND_KQUEUE;