summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/hexdump-odsyntax.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-03-22 09:34:49 -0500
committerJoel Sherrill <joel@rtems.org>2016-03-24 11:41:22 -0500
commit85f690189b101aa4a4997951e7f226edc1cf4b7d (patch)
treed4f99430ca4649a3bfdfe34ed97be54df2bef475 /cpukit/libmisc/shell/hexdump-odsyntax.c
parentshell/hexdump-conv.c: Disable sccsid to avoid unused warning (diff)
downloadrtems-85f690189b101aa4a4997951e7f226edc1cf4b7d.tar.bz2
shell/hexdump-odsyntax.c: Add define of _GNU_SOURCE to avoid warnings
Diffstat (limited to 'cpukit/libmisc/shell/hexdump-odsyntax.c')
-rw-r--r--cpukit/libmisc/shell/hexdump-odsyntax.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/libmisc/shell/hexdump-odsyntax.c b/cpukit/libmisc/shell/hexdump-odsyntax.c
index b69bc51926..88c7b80501 100644
--- a/cpukit/libmisc/shell/hexdump-odsyntax.c
+++ b/cpukit/libmisc/shell/hexdump-odsyntax.c
@@ -43,6 +43,9 @@ static char sccsid[] = "@(#)odsyntax.c 8.2 (Berkeley) 5/4/95";
__FBSDID("$FreeBSD: src/usr.bin/hexdump/odsyntax.c,v 1.17 2004/07/22 13:14:42 johan Exp $");
#endif
+#ifdef __rtems__
+#define _GNU_SOURCE
+#endif
#include <sys/types.h>
#include <ctype.h>