git: d72e68a22b9e - main - devel/libev: Correct inotify patch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 12 Jul 2025 21:11:48 UTC
The branch main has been updated by eduardo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d72e68a22b9ebe1380a180ffdcf92ffec9e46ad7
commit d72e68a22b9ebe1380a180ffdcf92ffec9e46ad7
Author: Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2025-07-12 21:07:25 +0000
Commit: Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-07-12 21:07:25 +0000
devel/libev: Correct inotify patch
Use #ifdef's for portability and possible upstreaming
Sugested by: fluffy
Fixes: cf7638c
---
devel/libev/files/patch-ev.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/devel/libev/files/patch-ev.c b/devel/libev/files/patch-ev.c
index 65b372e5415a..1a9d0e116848 100644
--- a/devel/libev/files/patch-ev.c
+++ b/devel/libev/files/patch-ev.c
@@ -1,15 +1,19 @@
--- ev.c.orig 2020-03-18 12:27:32 UTC
+++ ev.c
-@@ -507,7 +507,7 @@
+@@ -507,7 +507,11 @@
#endif
#if EV_USE_INOTIFY
-# include <sys/statfs.h>
-+# include <sys/mount.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
-@@ -3149,7 +3149,7 @@ ev_recommended_backends (void) EV_NOEXCEPT
+@@ -3149,7 +3153,7 @@ ev_recommended_backends (void) EV_NOEXCEPT
{
unsigned int flags = ev_supported_backends ();