Skip to content

Commit e4b98b3

Browse files
committed
GPU: fix build if libpciaccess is not available
1 parent 991ebfb commit e4b98b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/detection/gpu/gpu_general.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,9 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist*
6060
}
6161

6262
#else
63+
64+
const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FF_MAYBE_UNUSED FFlist* gpus)
65+
{
66+
return "Fastfetch was built without libpciaccess support";
67+
}
6368
#endif

0 commit comments

Comments
 (0)