summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadattrsetaffinitynp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/pthreadattrsetaffinitynp.c')
-rw-r--r--cpukit/posix/src/pthreadattrsetaffinitynp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpukit/posix/src/pthreadattrsetaffinitynp.c b/cpukit/posix/src/pthreadattrsetaffinitynp.c
index 0e3c828c38..a05b74e4de 100644
--- a/cpukit/posix/src/pthreadattrsetaffinitynp.c
+++ b/cpukit/posix/src/pthreadattrsetaffinitynp.c
@@ -1,7 +1,3 @@
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
/**
* @file
*
@@ -18,9 +14,14 @@
* http://www.rtems.org/license/LICENSE.
*/
+#define _GNU_SOURCE
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#if HAVE_DECL_PTHREAD_ATTR_SETAFFINITY_NP
-#define _GNU_SOURCE
#include <pthread.h>
#include <errno.h>