summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-10-23 13:36:45 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-10-23 13:36:45 -0500
commite26cd8dd2e950f32f5ffdafcc0051954536fa1c5 (patch)
tree11b23354127a8f62b7cbc3be92270bcea7cc7515
parentMakefile: Conditionalize IPV6 files and build some commands as .rel (diff)
downloadrtems-libbsd-e26cd8dd2e950f32f5ffdafcc0051954536fa1c5.tar.bz2
route: Add macros to assist use of getopt_r()
-rw-r--r--freebsd-userspace/commands/sbin/route/route.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd-userspace/commands/sbin/route/route.c b/freebsd-userspace/commands/sbin/route/route.c
index 8099d4c4..c0f2d50a 100644
--- a/freebsd-userspace/commands/sbin/route/route.c
+++ b/freebsd-userspace/commands/sbin/route/route.c
@@ -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)