diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-01-21 16:14:42 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-01-30 16:23:03 +0100 |
commit | f724741db0d48a6fd0bb07ac42bba9b203d3eb71 (patch) | |
tree | 493fce34021307c9ea174ba2c7d7fcde2328f09c /dhcpcd/dhcpcd.c | |
parent | DHCPCD(8): Add RTEMS program support (diff) | |
download | rtems-libbsd-f724741db0d48a6fd0bb07ac42bba9b203d3eb71.tar.bz2 |
DHCPCD(8): Add getopt_long_r() support
Diffstat (limited to 'dhcpcd/dhcpcd.c')
-rw-r--r-- | dhcpcd/dhcpcd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dhcpcd/dhcpcd.c b/dhcpcd/dhcpcd.c index 492ad970..a772b861 100644 --- a/dhcpcd/dhcpcd.c +++ b/dhcpcd/dhcpcd.c @@ -37,6 +37,9 @@ const char dhcpcd_copyright[] = "Copyright (c) 2006-2014 Roy Marples"; #include <ctype.h> #include <errno.h> +#ifdef __rtems__ +#define __need_getopt_newlib +#endif /* __rtems__ */ #include <getopt.h> #include <limits.h> #include <paths.h> @@ -1095,6 +1098,8 @@ signal_init(void (*func)(int, siginfo_t *, void *), sigset_t *oldset) #ifdef __rtems__ #include <rtems/libio.h> +struct getopt_data dhcpcd_getopt_data; + static int main(int argc, char **argv); |