summaryrefslogtreecommitdiff
path: root/rts/posix/ticker/Pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/posix/ticker/Pthread.c')
-rw-r--r--rts/posix/ticker/Pthread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rts/posix/ticker/Pthread.c b/rts/posix/ticker/Pthread.c
index a4c7af588f..9200ff8318 100644
--- a/rts/posix/ticker/Pthread.c
+++ b/rts/posix/ticker/Pthread.c
@@ -55,6 +55,9 @@
#include <string.h>
+#if defined(linux_HOST_OS)
+#define _GNU_SOURCE 1
+#endif
#include <pthread.h>
#if defined(HAVE_PTHREAD_NP_H)
#include <pthread_np.h>