summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-19 10:46:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-20 10:30:26 +0100
commit6b4a22e383b763bc290529c8831956df1984098b (patch)
tree90cbac8ae0c57d774b26867aa6328b0b4bd7aa4e
parentshell: Documentation (diff)
downloadrtems-6b4a22e383b763bc290529c8831956df1984098b.tar.bz2
shell: Include <rtems/shell.h> early
This avoids a conflict with the global variable defines.
-rw-r--r--cpukit/libmisc/shell/main_ping.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/libmisc/shell/main_ping.c b/cpukit/libmisc/shell/main_ping.c
index f13f24179b..62b6cdde38 100644
--- a/cpukit/libmisc/shell/main_ping.c
+++ b/cpukit/libmisc/shell/main_ping.c
@@ -100,6 +100,9 @@ __FBSDID("$FreeBSD$");
#include "err.h"
#include "sysexits.h"
#include <sys/select.h>
+#ifdef __rtems__
+#include <rtems/shell.h>
+#endif /* __rtems__ */
#define INADDR_LEN ((int)sizeof(in_addr_t))
#define TIMEVAL_LEN ((int)sizeof(struct tv32))
@@ -1970,8 +1973,6 @@ g_usage(globals)
}
#if __rtems__
- #include <rtems/shell.h>
-
rtems_shell_cmd_t rtems_shell_PING_Command = {
"ping", /* name */
"ping [args]", /* usage */