mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 17:42:04 +08:00
ifconfig.c: Correct for getopt_r()
This commit is contained in:
@@ -218,6 +218,10 @@ main(int argc, char *argv[])
|
|||||||
size_t iflen;
|
size_t iflen;
|
||||||
#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
|
||||||
|
|
||||||
all = downonly = uponly = namesonly = noload = verbose = 0;
|
all = downonly = uponly = namesonly = noload = verbose = 0;
|
||||||
|
Reference in New Issue
Block a user