Patch stdlib.h to include stdint.h

Fixes graphviz build.
This commit is contained in:
Fredrik Fornwall 2017-07-01 01:54:44 +02:00
parent 3b210f9b99
commit ebb3f0f296
2 changed files with 12 additions and 1 deletions

View File

@ -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+="-v1"
TERMUX_STANDALONE_TOOLCHAIN+="-v2"
export prefix=${TERMUX_PREFIX}
export PREFIX=${TERMUX_PREFIX}

View File

@ -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