termux-packages/packages/libarchive/bsdunzip_platform.h.patch

14 lines
295 B
Diff

--- a/unzip/bsdunzip_platform.h
+++ b/unzip/bsdunzip_platform.h
@@ -70,6 +70,10 @@
int optreset;
#endif
+#ifdef __ANDROID__
+#include <getopt.h>
+#endif
+
/* How to mark functions that don't return. */
/* This facilitates use of some newer static code analysis tools. */
#undef __LA_DEAD