summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadsetaffinitynp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/pthreadsetaffinitynp.c')
-rw-r--r--cpukit/posix/src/pthreadsetaffinitynp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthreadsetaffinitynp.c b/cpukit/posix/src/pthreadsetaffinitynp.c
index 0d3fec4482..7c8ac8c605 100644
--- a/cpukit/posix/src/pthreadsetaffinitynp.c
+++ b/cpukit/posix/src/pthreadsetaffinitynp.c
@@ -14,13 +14,14 @@
* http://www.rtems.org/license/LICENSE.
*/
+#define _GNU_SOURCE
+
#if HAVE_CONFIG_H
#include "config.h"
#endif
#if HAVE_DECL_PTHREAD_SETAFFINITY_NP
-#define _GNU_SOURCE
#include <pthread.h>
#include <errno.h>