diff --git a/ndk-patches/27/time.h.patch b/ndk-patches/27/time.h.patch new file mode 100644 index 0000000000..489f5c0b91 --- /dev/null +++ b/ndk-patches/27/time.h.patch @@ -0,0 +1,18 @@ +--- a/usr/include/time.h ++++ b/usr/include/time.h +@@ -39,6 +39,7 @@ + + __BEGIN_DECLS + ++#if __ANDROID_API__ >= 35 + /* If we just use void* in the typedef, the compiler exposes that in error messages. */ + struct __timezone_t; + +@@ -50,6 +51,7 @@ + * to remove the pointer. + */ + typedef struct __timezone_t* timezone_t; ++#endif + + /** Divisor to compute seconds from the result of a call to clock(). */ + #define CLOCKS_PER_SEC 1000000 diff --git a/scripts/build/termux_step_setup_toolchain.sh b/scripts/build/termux_step_setup_toolchain.sh index f46527340c..6d1301b748 100644 --- a/scripts/build/termux_step_setup_toolchain.sh +++ b/scripts/build/termux_step_setup_toolchain.sh @@ -7,7 +7,7 @@ termux_step_setup_toolchain() { # toolchain setup to ensure that everyone gets an updated # toolchain if [ "${TERMUX_NDK_VERSION}" = "27" ]; then - TERMUX_STANDALONE_TOOLCHAIN+="-v0" + TERMUX_STANDALONE_TOOLCHAIN+="-v1" termux_setup_toolchain_27 elif [ "${TERMUX_NDK_VERSION}" = 23c ]; then TERMUX_STANDALONE_TOOLCHAIN+="-v8"