Browse Source

Patch stdlib.h to include stdint.h

Fixes graphviz build.
android-5
Fredrik Fornwall 8 years ago
parent
commit
a09f7e7aba
  1. 2
      build-package.sh
  2. 11
      ndk-patches/stdlib.h.patch

2
build-package.sh

@ -221,7 +221,7 @@ termux_step_setup_variables() {
TERMUX_STANDALONE_TOOLCHAIN="$TERMUX_TOPDIR/_lib/${TERMUX_NDK_VERSION}-${TERMUX_ARCH}-${TERMUX_API_LEVEL}" 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 # Bump the below version if a change is made in toolchain setup to ensure
# that everyone gets an updated toolchain: # 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}

11
ndk-patches/stdlib.h.patch

@ -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
Loading…
Cancel
Save