summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-05 13:15:40 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-05 13:15:40 -0500
commit3604a2578f13cd0298dd53822eda791e3f38d900 (patch)
tree37e4f6df3284565ec6e4fbdffb3ee366bd644b9a
parentrtems-bsd-vm_glue.c: Add include of <freebsd/sys/types.h> (diff)
downloadrtems-libbsd-3604a2578f13cd0298dd53822eda791e3f38d900.tar.bz2
ping.c: Add include of port_before.h and rtems shell glue
-rw-r--r--freebsd-userspace/commands/sbin/ping/ping.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/freebsd-userspace/commands/sbin/ping/ping.c b/freebsd-userspace/commands/sbin/ping/ping.c
index 5dc84149..0ddf4db6 100644
--- a/freebsd-userspace/commands/sbin/ping/ping.c
+++ b/freebsd-userspace/commands/sbin/ping/ping.c
@@ -1,4 +1,5 @@
#ifdef __rtems__
+#include "port_before.h"
#define __need_getopt_newlib
#include <getopt.h>
#endif
@@ -1749,3 +1750,16 @@ usage()
" [-z tos] mcast-group");
exit(EX_USAGE);
}
+
+#ifdef __rtems__
+ #include <rtems/shell.h>
+
+ rtems_shell_cmd_t rtems_shell_PING_Command = {
+ "ping", /* name */
+ "ping [args]", /* usage */
+ "net", /* topic */
+ main_ping, /* command */
+ NULL, /* alias */
+ NULL /* next */
+ };
+#endif