From 9a11ff8ddbccb0276629e040a24f7bc28366846b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 14 Aug 2025 14:41:53 +0800 Subject: [PATCH] Packages (Android): fix building --- CMakeLists.txt | 1 + src/detection/packages/packages.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c1fb94b5..d162f508d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -614,6 +614,7 @@ elseif(ANDROID) src/detection/opengl/opengl_linux.c src/detection/os/os_android.c src/detection/packages/packages_linux.c + src/detection/packages/packages_nix.c src/detection/poweradapter/poweradapter_nosupport.c src/detection/processes/processes_linux.c src/detection/sound/sound_nosupport.c diff --git a/src/detection/packages/packages.h b/src/detection/packages/packages.h index c71711dcc..21e5ba544 100644 --- a/src/detection/packages/packages.h +++ b/src/detection/packages/packages.h @@ -55,7 +55,7 @@ const char* ffDetectPackages(FFPackagesResult* result, FFPackagesOptions* option bool ffPackagesReadCache(FFstrbuf* cacheDir, FFstrbuf* cacheContent, const char* filePath, const char* packageId, uint32_t* result); bool ffPackagesWriteCache(FFstrbuf* cacheDir, FFstrbuf* cacheContent, uint32_t num_elements); -#if (defined(__linux__) && !defined(__ANDROID__)) || defined(__APPLE__) +#if defined(__linux__) || defined(__APPLE__) uint32_t ffPackagesGetNix(FFstrbuf* baseDir, const char* dirname); #endif #ifndef _WIN32