From 208143116d48f376e6ca8065fb8086b2cc0a5045 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sat, 30 Mar 2024 18:29:28 +0100 Subject: [PATCH] ndk-patches: use standard futimesat function Without extra flags arg. --- ndk-patches/26b/sys-time.h.patch | 2 +- scripts/build/termux_step_setup_toolchain.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ndk-patches/26b/sys-time.h.patch b/ndk-patches/26b/sys-time.h.patch index 0ec8b980e6..bfeb0338ed 100644 --- a/ndk-patches/26b/sys-time.h.patch +++ b/ndk-patches/26b/sys-time.h.patch @@ -20,7 +20,7 @@ -#if __ANDROID_API__ >= 26 -int futimesat(int __dir_fd, const char* __BIONIC_COMPLICATED_NULLNESS __path, const struct timeval __times[_Nullable 2]) __INTRODUCED_IN(26); -#endif /* __ANDROID_API__ >= 26 */ -+int futimesat(int __dir_fd, const char* __BIONIC_COMPLICATED_NULLNESS __path, const struct timeval __times[_Nullable 2], int flags); ++int futimesat(int __dir_fd, const char* __BIONIC_COMPLICATED_NULLNESS __path, const struct timeval __times[_Nullable 2]); #endif diff --git a/scripts/build/termux_step_setup_toolchain.sh b/scripts/build/termux_step_setup_toolchain.sh index e4839050c4..64ce46c91c 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}" = "26b" ]; then - TERMUX_STANDALONE_TOOLCHAIN+="-v2" + TERMUX_STANDALONE_TOOLCHAIN+="-v3" termux_setup_toolchain_26b elif [ "${TERMUX_NDK_VERSION}" = 23c ]; then TERMUX_STANDALONE_TOOLCHAIN+="-v6"