Hi, Attached patch to fix the build with the Android NDK for x86. This was triggered building libtasn1 with the following error:
/bin/bash ../libtool --tag=CC --mode=compile i686-linux-android-gcc -fuse-ld=gold -std=gnu99 -DHAVE_CONFIG_H -I. -I.. --sysroot=/home/andoni/cerbero/android-ndk-r8b/platforms/android-9/arch-x86 -I/home/andoni/cerbero/android-ndk-r8b/platforms/android-9/arch-x86/usr/include -DANDROID -DPIC -g -Os --sysroot=/home/andoni/cerbero/android-ndk-r8b/platforms/android-9/arch-x86 -I/home/andoni/cerbero/android-ndk-r8b/platforms/android-9/arch-x86/usr/include -ffunction-sections -funwind-tables -fPIC -march=i686 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -DANDROID -DPIC -Wa,--noexecstack -MT read-file.lo -MD -MP -MF .deps/read-file.Tpo -c -o read-file.lo read-file.c libtool: compile: i686-linux-android-gcc -fuse-ld=gold -std=gnu99 -DHAVE_CONFIG_H -I. -I.. --sysroot=/home/andoni/cerbero/android-ndk-r8b/platforms/android-9/arch-x86 -I/home/andoni/cerbero/android-ndk-r8b/platforms/android-9/arch-x86/usr/include -DANDROID -DPIC -g -Os --sysroot=/home/andoni/cerbero/android-ndk-r8b/platforms/android-9/arch-x86 -I/home/andoni/cerbero/android-ndk-r8b/platforms/android-9/arch-x86/usr/include -ffunction-sections -funwind-tables -fPIC -march=i686 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -DANDROID -DPIC -Wa,--noexecstack -MT read-file.lo -MD -MP -MF .deps/read-file.Tpo -c read-file.c -fPIC -DPIC -o .libs/read-file.o read-file.c: In function 'fread_file': read-file.c:62:17: error: 'SIZE_MAX' undeclared (first use in this function) read-file.c:62:17: note: each undeclared identifier is reported only once for each function it appears in Cheers, Andoni
0001-read-file-fix-include-for-SIZE_MAX-with-Bionic-libc.patch
Description: Binary data