diff options
author | Konstantin S. Matveyev <root@zorro.ev> | 2018-11-26 16:03:02 +0300 |
---|---|---|
committer | Konstantin S. Matveyev <root@zorro.ev> | 2018-11-26 16:05:15 +0300 |
commit | cede738575ec01a7bbd3559a1c564609b949bebf (patch) | |
tree | 34b7ef5b11fac575dfbd363811cd7430f9b84590 | |
parent | 7809a2c08bd3dbea49af2f19a24346372f219b5b (diff) | |
download | lanes-cede738575ec01a7bbd3559a1c564609b949bebf.tar.gz lanes-cede738575ec01a7bbd3559a1c564609b949bebf.tar.bz2 lanes-cede738575ec01a7bbd3559a1c564609b949bebf.zip |
'Linking error while embedding Lanes' on Linux fix
-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> |