mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-27 11:57:20 +08:00
ping: corrected argument get to work with rtems.
This commit is contained in:
parent
cb5035400c
commit
240093f3ce
@ -295,6 +295,10 @@ main(argc, argv)
|
|||||||
unsigned char loop, mttl;
|
unsigned char loop, mttl;
|
||||||
#ifdef __rtems__
|
#ifdef __rtems__
|
||||||
struct getopt_data getopt_reent;
|
struct getopt_data getopt_reent;
|
||||||
|
#define optarg getopt_reent.optarg
|
||||||
|
#define optind getopt_reent.optind
|
||||||
|
#define opterr getopt.reent.opterr
|
||||||
|
#define optopt getopt.reent.optopt
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
payload = source = NULL;
|
payload = source = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user