summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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