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