aboutsummaryrefslogtreecommitdiff
path: root/lib/common/comp_opt.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/comp_opt.c')
-rw-r--r--lib/common/comp_opt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/common/comp_opt.c b/lib/common/comp_opt.c
index 58a7a21..93ad1cc 100644
--- a/lib/common/comp_opt.c
+++ b/lib/common/comp_opt.c
@@ -8,9 +8,14 @@
#include <string.h>
#include <stdlib.h>
-#include <getopt.h>
#include <ctype.h>
+#ifdef HAVE_GETSUBOPT
+#include <getopt.h>
+#else
+#include "compat.h"
+#endif
+
typedef struct {
const char *name;
sqfs_u16 flag;