mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 04:12:29 +01:00
issue with _POSIX_PRIORITY_SCHEDULING reported upstream: https://github.com/luaposix/luaposix/issues/223
17 lines
354 B
Diff
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
|
|
|
|
|