summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-10-23 16:48:54 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-10-23 16:48:54 -0500
commitbea701c3a081ea259a17b5f85fb3d34ec0575acb (patch)
treeee6eb9e7ce3aed13a65ad70f9533a4db642ee484
parentrtems-bsd-sx.c: Disable check for interruptible blocking until it is supported (diff)
downloadrtems-libbsd-bea701c3a081ea259a17b5f85fb3d34ec0575acb.tar.bz2
netstat: Add macros to assist use of getopt_r()
-rw-r--r--freebsd-userspace/commands/usr.bin/netstat/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd-userspace/commands/usr.bin/netstat/main.c b/freebsd-userspace/commands/usr.bin/netstat/main.c
index a6411dfc..e5e3b2d5 100644
--- a/freebsd-userspace/commands/usr.bin/netstat/main.c
+++ b/freebsd-userspace/commands/usr.bin/netstat/main.c
@@ -750,6 +750,10 @@ main(int argc, char *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
af = AF_UNSPEC;