summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadgetaffinitynp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/pthreadgetaffinitynp.c')
-rw-r--r--cpukit/posix/src/pthreadgetaffinitynp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthreadgetaffinitynp.c b/cpukit/posix/src/pthreadgetaffinitynp.c
index dab6b63aa0..c9595a45f5 100644
--- a/cpukit/posix/src/pthreadgetaffinitynp.c
+++ b/cpukit/posix/src/pthreadgetaffinitynp.c
@@ -14,6 +14,7 @@
* http://www.rtems.org/license/LICENSE.
*/
+#define _GNU_SOURCE
#if HAVE_CONFIG_H
#include "config.h"
@@ -21,7 +22,6 @@
#if HAVE_DECL_PTHREAD_GETAFFINITY_NP
-#define _GNU_SOURCE
#include <pthread.h>
#include <errno.h>