[rtems-libbsd commit] ifconfig.c: Correct for getopt_r()
Joel Sherrill
joel at rtems.org
Tue Oct 23 16:09:59 UTC 2012
Module: rtems-libbsd
Branch: master
Commit: 25f7f0f9b554797a1050df54ab157520723d463a
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=25f7f0f9b554797a1050df54ab157520723d463a
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Tue Oct 23 10:57:30 2012 -0500
ifconfig.c: Correct for getopt_r()
---
.../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 fc170f8..afc952a 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;
More information about the vc
mailing list