summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-04-20 20:35:11 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-04-20 20:35:11 +0100
commitb723f50e6575b13751aa172d3cd1e80c3085f296 (patch)
treed557a0fc267c99031f409fe6efc914075c4f631d /compat.h
parent4a2e75fc8c4a7d91f7c080605749e9dc564f2c2b (diff)
Do not need getopt.h for getopt, from Eric N Vander Weele.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/compat.h b/compat.h
index d38e6f0c..7824fc52 100644
--- a/compat.h
+++ b/compat.h
@@ -344,9 +344,7 @@ int utf8proc_mbtowc(wchar_t *, const char *, size_t);
int utf8proc_wctomb(char *, wchar_t);
#endif
-#ifdef HAVE_GETOPT
-#include <getopt.h>
-#else
+#ifndef HAVE_GETOPT
/* getopt.c */
extern int BSDopterr;
extern int BSDoptind;