summaryrefslogtreecommitdiff
path: root/openbsd-compat/getopt_long.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/getopt_long.c')
-rw-r--r--openbsd-compat/getopt_long.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsd-compat/getopt_long.c b/openbsd-compat/getopt_long.c
index 6b36d0672..e28947430 100644
--- a/openbsd-compat/getopt_long.c
+++ b/openbsd-compat/getopt_long.c
@@ -53,7 +53,6 @@
53#include "includes.h" 53#include "includes.h"
54 54
55#if !defined(HAVE_GETOPT) || !defined(HAVE_GETOPT_OPTRESET) 55#if !defined(HAVE_GETOPT) || !defined(HAVE_GETOPT_OPTRESET)
56#include "log.h"
57 56
58/* 57/*
59 * Some defines to make it easier to keep the code in sync with upstream. 58 * Some defines to make it easier to keep the code in sync with upstream.
@@ -64,11 +63,14 @@
64 63
65#if 0 64#if 0
66#include <err.h> 65#include <err.h>
66#include <getopt.h>
67#endif 67#endif
68#include <errno.h> 68#include <errno.h>
69#include <getopt.h>
70#include <stdlib.h> 69#include <stdlib.h>
71#include <string.h> 70#include <string.h>
71#include <stdarg.h>
72
73#include "log.h"
72 74
73int opterr = 1; /* if error message should be printed */ 75int opterr = 1; /* if error message should be printed */
74int optind = 1; /* index into parent argv vector */ 76int optind = 1; /* index into parent argv vector */