diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-23 10:57:30 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-23 11:13:58 -0500 |
commit | 25f7f0f9b554797a1050df54ab157520723d463a (patch) | |
tree | 290b5fa69f2d1b8025b9c8f4584a024984ba530e | |
parent | netstat/if.c: Use POSIX not BSD signals (diff) | |
download | rtems-libbsd-25f7f0f9b554797a1050df54ab157520723d463a.tar.bz2 |
ifconfig.c: Correct for getopt_r()
-rw-r--r-- | freebsd-userspace/commands/sbin/ifconfig/ifconfig.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd-userspace/commands/sbin/ifconfig/ifconfig.c b/freebsd-userspace/commands/sbin/ifconfig/ifconfig.c index fc170f8d..afc952af 100644 --- a/freebsd-userspace/commands/sbin/ifconfig/ifconfig.c +++ b/freebsd-userspace/commands/sbin/ifconfig/ifconfig.c @@ -218,6 +218,10 @@ main(int argc, char *argv[]) size_t iflen; #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 all = downonly = uponly = namesonly = noload = verbose = 0; |