mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-10 12:53:27 +00:00
Update repo
This commit is contained in:
18
ndk-patches/27/time.h.patch
Normal file
18
ndk-patches/27/time.h.patch
Normal file
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user