summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/main_dd.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/libmisc/shell/main_dd.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 '')
-rw-r--r--cpukit/libmisc/shell/main_dd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/main_dd.c b/cpukit/libmisc/shell/main_dd.c
index cff70ce020..1a715303ef 100644
--- a/cpukit/libmisc/shell/main_dd.c
+++ b/cpukit/libmisc/shell/main_dd.c
@@ -31,6 +31,8 @@
* SUCH DAMAGE.
*/
+#define _GNU_SOURCE
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -49,7 +51,6 @@ static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94";
__FBSDID("$FreeBSD: src/bin/dd/dd.c,v 1.43 2004/08/15 19:10:05 rwatson Exp $");
#endif
-#define _GNU_SOURCE
#include <rtems.h>
#include <rtems/shell.h>
#include <rtems/shellconfig.h>