From 661be207776e84acbfce438347bce7c34dfabadf Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 15 Feb 2017 13:05:27 +0100 Subject: shell: Fix warnings --- cpukit/libmisc/shell/hexdump-odsyntax.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpukit/libmisc/shell/hexdump-odsyntax.c') diff --git a/cpukit/libmisc/shell/hexdump-odsyntax.c b/cpukit/libmisc/shell/hexdump-odsyntax.c index 88c7b80501..bc6211b0d5 100644 --- a/cpukit/libmisc/shell/hexdump-odsyntax.c +++ b/cpukit/libmisc/shell/hexdump-odsyntax.c @@ -39,13 +39,14 @@ #if 0 static char sccsid[] = "@(#)odsyntax.c 8.2 (Berkeley) 5/4/95"; #endif /* not lint */ +#ifdef __rtems__ +/* For asprintf() visibility */ +#define _GNU_SOURCE +#endif /* __rtems__ */ #include __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 #include -- cgit v1.2.3