aports/main/lua-posix/fix-sched-header.patch
Natanael Copa 7d9f604ef0 main/lua-posix: upgrade to 33.3.1 and add lua 5.3
issue with _POSIX_PRIORITY_SCHEDULING reported upstream:
https://github.com/luaposix/luaposix/issues/223
2015-04-06 09:32:47 +00:00

17 lines
354 B
Diff

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