From 3604a2578f13cd0298dd53822eda791e3f38d900 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 5 Sep 2012 13:15:40 -0500 Subject: ping.c: Add include of port_before.h and rtems shell glue --- freebsd-userspace/commands/sbin/ping/ping.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 #endif @@ -1749,3 +1750,16 @@ usage() " [-z tos] mcast-group"); exit(EX_USAGE); } + +#ifdef __rtems__ + #include + + rtems_shell_cmd_t rtems_shell_PING_Command = { + "ping", /* name */ + "ping [args]", /* usage */ + "net", /* topic */ + main_ping, /* command */ + NULL, /* alias */ + NULL /* next */ + }; +#endif -- cgit v1.2.3