aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/compat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/compat.h b/include/compat.h
index 5d7a052..6f8a77d 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -197,6 +197,13 @@ char *strndup(const char *str, size_t max_len);
int getsubopt(char **opt, char *const *keys, char **val);
#endif
+#ifndef HAVE_GETOPT
+extern int optind;
+extern char *optarg;
+
+int getopt(int argc, char *const argv[], const char *optstr);
+#endif
+
#if defined(_WIN32) || defined(__WINDOWS__)
WCHAR *path_to_windows(const char *input);
#endif