aboutsummaryrefslogtreecommitdiff
path: root/unpack/rdsquashfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'unpack/rdsquashfs.h')
-rw-r--r--unpack/rdsquashfs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/unpack/rdsquashfs.h b/unpack/rdsquashfs.h
index 17c0a85..bf3e4c6 100644
--- a/unpack/rdsquashfs.h
+++ b/unpack/rdsquashfs.h
@@ -23,9 +23,13 @@
setxattr(path, name, value, size, 0, flags | XATTR_NOFOLLOW)
#endif
#endif
+
+#ifdef HAVE_GETOPT_LONG
+#include <getopt.h>
+#endif
+
#include <string.h>
#include <stdlib.h>
-#include <getopt.h>
#include <assert.h>
#include <ctype.h>
#include <errno.h>