mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-27 20:55:28 +08:00
netstat: Add macros to assist use of getopt_r()
This commit is contained in:
parent
8ddbc30f41
commit
bea701c3a0
@ -750,6 +750,10 @@ main(int argc, char *argv[])
|
|||||||
int ch;
|
int ch;
|
||||||
#ifdef __rtems__
|
#ifdef __rtems__
|
||||||
struct getopt_data getopt_reent;
|
struct getopt_data getopt_reent;
|
||||||
|
#define optind getopt_reent.optind
|
||||||
|
#define optarg getopt_reent.optarg
|
||||||
|
#define opterr getopt_reent.opterr
|
||||||
|
#define optopt getopt_reent.optopt
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
af = AF_UNSPEC;
|
af = AF_UNSPEC;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user