#compilation error 'fgets_unlocked' is unavailable introduced in Android 28

6 messages · Page 1 of 1 (latest)

lilac seal
#

I tried the following flags but I still get the error

set -x

API=$(getprop ro.build.version.sdk)
FLAGS="-D__ANDROID_API__=$API -D__ANDROID_MIN_SDK_VERSION__=$API -DANDROID_NATIVE_API_LEVEL=$API -DANDROID_ABI=$(getprop ro.vendor.product.cpu.abilist64)"

PSPDEV=/data/data/com.termux/files/home/PSPDEV-ANDROID \
 PATH=/data/data/com.termux/files/home/PSPDEV-ANDROID/bin:$PATH \
 CFLAGS="$FLAGS" \
 CXXFLAGS="$FLAGS" \
 LOCAL_PACKAGE_BUILD=1 \
 ./build-all.sh
gritty fern
#

what is your android version?

#

fgets_unlocked() was introduced in android 9

#

also you should probably export those environment variables individually and not as an single command

lilac seal
low isle
#

add --target=aarch64-unknown-linux-android28 to cflags?