summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadattrgetaffinitynp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/pthreadattrgetaffinitynp.c')
-rw-r--r--cpukit/posix/src/pthreadattrgetaffinitynp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthreadattrgetaffinitynp.c b/cpukit/posix/src/pthreadattrgetaffinitynp.c
index b281b11e5f..19acfa85aa 100644
--- a/cpukit/posix/src/pthreadattrgetaffinitynp.c
+++ b/cpukit/posix/src/pthreadattrgetaffinitynp.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_ATTR_GETAFFINITY_NP
-#define _GNU_SOURCE
#include <pthread.h>
#include <errno.h>