summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadgetaffinitynp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-16 16:01:13 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-19 16:05:54 +0100
commit38207a31e41b8cb3f3978c1ccbe10c6467f85c51 (patch)
tree809519382feb6373b946eb082dca7295193bd18d /cpukit/posix/src/pthreadgetaffinitynp.c
parentbsp/lpc32xx: Fix linker command file (diff)
downloadrtems-38207a31e41b8cb3f3978c1ccbe10c6467f85c51.tar.bz2
Move feature macro before "config.h" include
This allows to use header includes in "config.h" to reduce the build configuration checks. Update #3818.
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>