aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-posix/fix-sched-header.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-06 08:41:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-06 09:32:47 +0000
commit7d9f604ef0277912de1d379fdd46e8b8fbf71dc8 (patch)
tree34f86b5ec1db27ee5893abb29c33013b1ec746b9 /main/lua-posix/fix-sched-header.patch
parent853398b5519f1b7d64fd997df00aa0b593c3b409 (diff)
downloadaports-7d9f604ef0277912de1d379fdd46e8b8fbf71dc8.tar.bz2
aports-7d9f604ef0277912de1d379fdd46e8b8fbf71dc8.tar.xz
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
Diffstat (limited to 'main/lua-posix/fix-sched-header.patch')
-rw-r--r--main/lua-posix/fix-sched-header.patch16
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
+
+