| 1 | Patch-Source: https://github.com/archlinux/svntogit-community/blob/packages/libdispatch/trunk/avoid-libkqueue.patch |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | #include <stdio.h> |
| 7 | #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) |
| 8 | #include <unistd.h> |
| 9 | -#if __has_include(<sys/event.h>) |
| 10 | +#if __has_include(<sys/event.h>) && !defined(__linux__) |
| 11 | #define HAS_SYS_EVENT_H 1 |
| 12 | #include <sys/event.h> |
| 13 | #else |