From e4b98b3494ecd5e80cca716d70140ac8e6aec56d Mon Sep 17 00:00:00 2001 From: Carter Li Date: Mon, 4 Nov 2024 21:59:41 +0800 Subject: [PATCH] GPU: fix build if libpciaccess is not available --- src/detection/gpu/gpu_general.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/detection/gpu/gpu_general.c b/src/detection/gpu/gpu_general.c index c978bd829..31d7bac3e 100644 --- a/src/detection/gpu/gpu_general.c +++ b/src/detection/gpu/gpu_general.c @@ -60,4 +60,9 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist* } #else + +const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FF_MAYBE_UNUSED FFlist* gpus) +{ + return "Fastfetch was built without libpciaccess support"; +} #endif