diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-23 13:36:45 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-10-23 13:36:45 -0500 |
commit | e26cd8dd2e950f32f5ffdafcc0051954536fa1c5 (patch) | |
tree | 11b23354127a8f62b7cbc3be92270bcea7cc7515 | |
parent | Makefile: Conditionalize IPV6 files and build some commands as .rel (diff) | |
download | rtems-libbsd-e26cd8dd2e950f32f5ffdafcc0051954536fa1c5.tar.bz2 |
route: Add macros to assist use of getopt_r()
-rw-r--r-- | freebsd-userspace/commands/sbin/route/route.c | 4 |
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) |