aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-posix/fix-sched-header.patch
blob: 0a55902257507627a4d3e8faf45da592c5cf7c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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