From d599be1e7fa38c37c02bbacfa6f48682145004f5 Mon Sep 17 00:00:00 2001 From: Faheem Pervez Date: Tue, 16 Jun 2020 10:00:20 +0100 Subject: [PATCH] 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. --- packages/transmission/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/transmission/build.sh b/packages/transmission/build.sh index e853ed425..c6933f7c7 100644 --- a/packages/transmission/build.sh +++ b/packages/transmission/build.sh @@ -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