summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--freebsd-userspace/commands/sbin/ifconfig/ifconfig.c4
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;