mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 05:24:39 +08:00
ping.c: Add include of port_before.h and rtems shell glue
This commit is contained in:
parent
ab9e6dea37
commit
3604a2578f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user