diff options
-rw-r--r-- | src/threading.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/threading.c b/src/threading.c index c0e6a55..d5c127f 100644 --- a/src/threading.c +++ b/src/threading.c | |||
@@ -34,6 +34,12 @@ THE SOFTWARE. | |||
34 | 34 | ||
35 | =============================================================================== | 35 | =============================================================================== |
36 | */ | 36 | */ |
37 | #include "platform.h" | ||
38 | #if defined(PLATFORM_LINUX) | ||
39 | # define _GNU_SOURCE /* must be defined before <sched.h> */ | ||
40 | # include <sched.h> | ||
41 | #endif | ||
42 | |||
37 | #include <stdio.h> | 43 | #include <stdio.h> |
38 | #include <stdlib.h> | 44 | #include <stdlib.h> |
39 | #include <assert.h> | 45 | #include <assert.h> |