ping.c: Add include of port_before.h and rtems shell glue

This commit is contained in:
Joel Sherrill 2012-09-05 13:15:40 -05:00
parent ab9e6dea37
commit 3604a2578f

View File

@ -1,4 +1,5 @@
#ifdef __rtems__ #ifdef __rtems__
#include "port_before.h"
#define __need_getopt_newlib #define __need_getopt_newlib
#include <getopt.h> #include <getopt.h>
#endif #endif
@ -1749,3 +1750,16 @@ usage()
" [-z tos] mcast-group"); " [-z tos] mcast-group");
exit(EX_USAGE); 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