From fb26cb13946a0a448ba0d57ef0c4cb0b3c0482f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 11 Apr 2024 19:49:57 +0800 Subject: [PATCH] Disk (Android): fix build Android does support `statx`, but it requires targeting newer ANDROID_API version to be available --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33c8e3d65..d49f5c70c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -699,7 +699,9 @@ check_function_exists(wcwidth HAVE_WCWIDTH) if(NOT HAVE_WCWIDTH) list(APPEND LIBFASTFETCH_SRC src/3rdparty/mk_wcwidch/wcwidth.c) endif() -check_function_exists(statx HAVE_STATX) +if(LINUX) + check_function_exists(statx HAVE_STATX) +endif() if(ENABLE_SYSTEM_YYJSON) find_package(yyjson)