[rtems commit] shell/hexdump-odsyntax.c: Add define of _GNU_SOURCE to avoid warnings

Joel Sherrill joel at rtems.org
Thu Mar 24 16:58:38 UTC 2016


Module:    rtems
Branch:    master
Commit:    85f690189b101aa4a4997951e7f226edc1cf4b7d
Changeset: http://git.rtems.org/rtems/commit/?id=85f690189b101aa4a4997951e7f226edc1cf4b7d

Author:    Joel Sherrill <joel at rtems.org>
Date:      Tue Mar 22 09:34:49 2016 -0500

shell/hexdump-odsyntax.c: Add define of _GNU_SOURCE to avoid warnings

---

 cpukit/libmisc/shell/hexdump-odsyntax.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpukit/libmisc/shell/hexdump-odsyntax.c b/cpukit/libmisc/shell/hexdump-odsyntax.c
index b69bc51..88c7b80 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>



More information about the vc mailing list