diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-05-10 18:08:49 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-05-10 18:08:49 +1000 |
commit | 0abfb559e3f79d1f217773510d7626c3722aa3c1 (patch) | |
tree | efa229344f4d6c47f0e9054f9b868c0ecaa7fd91 /openbsd-compat/getopt_long.c | |
parent | ccfdfceacb7e23d1479ed4cc91976c5ac6e23c56 (diff) |
- (dtucker) [openbsd-compat/getopt.h openbsd-compat/getopt_long.c
openbsd-compat/openbsd-compat.h] pull in getopt.h from openbsd and plumb
in to use it when we're using our own getopt.
Diffstat (limited to 'openbsd-compat/getopt_long.c')
-rw-r--r-- | openbsd-compat/getopt_long.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsd-compat/getopt_long.c b/openbsd-compat/getopt_long.c index 6b36d067..e2894743 100644 --- a/openbsd-compat/getopt_long.c +++ b/openbsd-compat/getopt_long.c @@ -53,7 +53,6 @@ #include "includes.h" #if !defined(HAVE_GETOPT) || !defined(HAVE_GETOPT_OPTRESET) -#include "log.h" /* * Some defines to make it easier to keep the code in sync with upstream. @@ -64,11 +63,14 @@ #if 0 #include <err.h> +#include <getopt.h> #endif #include <errno.h> -#include <getopt.h> #include <stdlib.h> #include <string.h> +#include <stdarg.h> + +#include "log.h" int opterr = 1; /* if error message should be printed */ int optind = 1; /* index into parent argv vector */ |