diff options
Diffstat (limited to 'main/lua-posix/fix-sched-header.patch')
-rw-r--r-- | main/lua-posix/fix-sched-header.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/main/lua-posix/fix-sched-header.patch b/main/lua-posix/fix-sched-header.patch new file mode 100644 index 0000000000..0a55902257 --- /dev/null +++ b/main/lua-posix/fix-sched-header.patch @@ -0,0 +1,16 @@ +diff --git a/ext/posix/sched.c b/ext/posix/sched.c +index 13b196b..6901589 100644 +--- a/ext/posix/sched.c ++++ b/ext/posix/sched.c +@@ -21,9 +21,7 @@ + + #include <config.h> + +-#include <unistd.h> /* for _POSIX_PRIORITY_SCHEDULING */ +- +-#ifdef _POSIX_PRIORITY_SCHEDULING ++#if HAVE_SCHED_GETSCHEDULER || HAVE_SCHED_SETSCHEDULER + #include <sched.h> + #endif + + |