mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-01 21:44:44 +08:00
route: Add macros to assist use of getopt_r()
This commit is contained in:
parent
68e0948111
commit
e26cd8dd2e
@ -167,6 +167,10 @@ main(argc, argv)
|
||||
int ch;
|
||||
#ifdef __rtems__
|
||||
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
|
||||
|
||||
if (argc < 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user