From eb47b3c51ad7e321563d70ff142f47cedf8830bc Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 18 Oct 2022 11:34:31 -0400 Subject: stat: Check Android API level for statx() support Bionic's can define STATX_BASIC_STATS without declaring statx() on lower API levels, so explicitly check for the version it was added in. --- src/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/stat.c b/src/stat.c index b67ad0e..b172780 100644 --- a/src/stat.c +++ b/src/stat.c @@ -28,7 +28,7 @@ # include #endif -#ifdef STATX_BASIC_STATS +#if defined(STATX_BASIC_STATS) && (!__ANDROID__ || __ANDROID_API__ >= 30) # define BFS_LIBC_STATX true #elif __linux__ # include -- cgit v1.2.3