aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-07-23 07:20:45 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-09-02 19:41:56 +0000
commit25e77cbd7b9352e3c3152fe09b43248cea240904 (patch)
treebf34e24d9228d2a7ed9b116c163ba0c3641e6fcf
parent4ef92e47ecb0287dbf2e6cc3081d4e9004266a2d (diff)
www/rubygem-passenger: Fix build on 15-CURRENT
-rw-r--r--www/rubygem-passenger/files/patch-libev23
1 files changed, 23 insertions, 0 deletions
diff --git a/www/rubygem-passenger/files/patch-libev b/www/rubygem-passenger/files/patch-libev
new file mode 100644
index 000000000000..b7c89c1af886
--- /dev/null
+++ b/www/rubygem-passenger/files/patch-libev
@@ -0,0 +1,23 @@
+--- src/cxx_supportlib/vendor-modified/libev/ev.c.orig 2025-07-13 19:43:52 UTC
++++ src/cxx_supportlib/vendor-modified/libev/ev.c
+@@ -421,6 +421,11 @@
+
+ #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
+@@ -2753,7 +2758,7 @@ ev_recommended_backends (void) EV_THROW
+ {
+ 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;