Fix building with gcc and unified headers

This commit is contained in:
Fredrik Fornwall 2017-06-27 23:27:55 +02:00
parent e0dd456118
commit 1b8f1a0b52
1 changed files with 4 additions and 0 deletions

View File

@ -515,6 +515,10 @@ termux_step_setup_toolchain() {
LDFLAGS+=" -landroid-support"
fi
if [ "$TERMUX_PKG_CLANG" = "no" ] && [ -n "${TERMUX_UNIFIED_HEADERS:=""}" ]; then
CPPFLAGS+=" -D__ANDROID_API__=$TERMUX_API_LEVEL"
fi
export ac_cv_func_getpwent=no
export ac_cv_func_getpwnam=no
export ac_cv_func_getpwuid=no