diff options
author | Konstantin S. Matveyev <root@zorro.ev> | 2018-11-26 18:53:39 +0300 |
---|---|---|
committer | Konstantin S. Matveyev <root@zorro.ev> | 2018-11-26 18:53:39 +0300 |
commit | 24f8f79350725f1b75e550c85246288506365a13 (patch) | |
tree | 2614abc6e94be7c10b777ee93e7c8909c4148ad9 /src | |
parent | cede738575ec01a7bbd3559a1c564609b949bebf (diff) | |
download | lanes-24f8f79350725f1b75e550c85246288506365a13.tar.gz lanes-24f8f79350725f1b75e550c85246288506365a13.tar.bz2 lanes-24f8f79350725f1b75e550c85246288506365a13.zip |
'Linking error while embedding Lanes' on Linux fix simplified
Diffstat (limited to 'src')
-rw-r--r-- | src/threading.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/threading.c b/src/threading.c index d5c127f..9aa04af 100644 --- a/src/threading.c +++ b/src/threading.c | |||
@@ -34,10 +34,8 @@ THE SOFTWARE. | |||
34 | 34 | ||
35 | =============================================================================== | 35 | =============================================================================== |
36 | */ | 36 | */ |
37 | #include "platform.h" | 37 | #if defined(__linux__) |
38 | #if defined(PLATFORM_LINUX) | 38 | # define _GNU_SOURCE /* must be defined before any include */ |
39 | # define _GNU_SOURCE /* must be defined before <sched.h> */ | ||
40 | # include <sched.h> | ||
41 | #endif | 39 | #endif |
42 | 40 | ||
43 | #include <stdio.h> | 41 | #include <stdio.h> |