aboutsummaryrefslogtreecommitdiffstats
path: root/community/libdispatch/avoid-libkqueue.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/libdispatch/avoid-libkqueue.patch')
-rw-r--r--community/libdispatch/avoid-libkqueue.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/libdispatch/avoid-libkqueue.patch b/community/libdispatch/avoid-libkqueue.patch
new file mode 100644
index 00000000000..5b2b5c3ea6c
--- /dev/null
+++ b/community/libdispatch/avoid-libkqueue.patch
@@ -0,0 +1,13 @@
+Patch-Source: https://github.com/archlinux/svntogit-community/blob/packages/libdispatch/trunk/avoid-libkqueue.patch
+
+--- a/tests/dispatch_test.c
++++ b/tests/dispatch_test.c
+@@ -30,7 +30,7 @@
+ #include <stdio.h>
+ #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
+ #include <unistd.h>
+-#if __has_include(<sys/event.h>)
++#if __has_include(<sys/event.h>) && !defined(__linux__)
+ #define HAS_SYS_EVENT_H 1
+ #include <sys/event.h>
+ #else