chiark / gitweb /
Patch stdlib.h to include stdint.h
authorFredrik Fornwall <fredrik@fornwall.net>
Fri, 30 Jun 2017 23:54:44 +0000 (01:54 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 30 Jun 2017 23:54:44 +0000 (01:54 +0200)
Fixes graphviz build.

build-package.sh
ndk-patches/stdlib.h.patch [new file with mode: 0644]

index 23a713d1dd991134cb4974fdb60f11c2a73766d2..1970f46215fd4c9df8d42abc3b63bfa1fcf93d76 100755 (executable)
@@ -221,7 +221,7 @@ termux_step_setup_variables() {
        TERMUX_STANDALONE_TOOLCHAIN="$TERMUX_TOPDIR/_lib/${TERMUX_NDK_VERSION}-${TERMUX_ARCH}-${TERMUX_API_LEVEL}"
        # Bump the below version if a change is made in toolchain setup to ensure
        # that everyone gets an updated toolchain:
        TERMUX_STANDALONE_TOOLCHAIN="$TERMUX_TOPDIR/_lib/${TERMUX_NDK_VERSION}-${TERMUX_ARCH}-${TERMUX_API_LEVEL}"
        # Bump the below version if a change is made in toolchain setup to ensure
        # that everyone gets an updated toolchain:
-       TERMUX_STANDALONE_TOOLCHAIN+="-v1"
+       TERMUX_STANDALONE_TOOLCHAIN+="-v2"
 
        export prefix=${TERMUX_PREFIX}
        export PREFIX=${TERMUX_PREFIX}
 
        export prefix=${TERMUX_PREFIX}
        export PREFIX=${TERMUX_PREFIX}
diff --git a/ndk-patches/stdlib.h.patch b/ndk-patches/stdlib.h.patch
new file mode 100644 (file)
index 0000000..f526599
--- /dev/null
@@ -0,0 +1,11 @@
+diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/stdlib.h ./usr/include/stdlib.h
+--- /home/fornwall/lib/android-ndk/sysroot/usr/include/stdlib.h        2017-06-20 17:41:56.000000000 +0200
++++ ./usr/include/stdlib.h     2017-07-01 01:50:17.192362546 +0200
+@@ -35,6 +35,7 @@
+ #include <alloca.h>
+ #include <malloc.h>
+ #include <stddef.h>
++#include <stdint.h>
+ __BEGIN_DECLS