1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-13 14:16:42 +00:00

transmission: define _POSIX_C_SOURCE to allow realpath(foo, NULL)

Android 7 allows realpath() to be called with the resolved parameter as NULL.
(See tags/android-7.0.0_r1/libc/upstream-freebsd/lib/libc/stdlib/realpath.c#68)
In tr_sys_path_resolve(), a tiny bit of time can be saved by doing so.
This commit is contained in:
Faheem Pervez 2020-06-16 10:00:20 +01:00 committed by Leonid Pliushch
parent f58dce7d41
commit d599be1e7f

View File

@ -35,6 +35,7 @@ termux_step_extract_package() {
}
termux_step_pre_configure() {
CFLAGS+=" -D_POSIX_C_SOURCE=200809L"
./autogen.sh
echo "ac_cv_func_getmntent=no" >> termux_configure.cache