Skip to content

Commit 9832a0e

Browse files
committed
GPU (FreeBSD): fix compiling when libdrm is not available
Fix #1820
1 parent addf674 commit 9832a0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/detection/gpu/gpu_bsd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,13 @@ static const char* detectByPci(const FFGPUOptions* options, FFlist* gpus)
212212

213213
const char* ffDetectGPUImpl(const FFGPUOptions* options, FFlist* gpus)
214214
{
215+
#if FF_HAVE_DRM
215216
if (options->detectionMethod == FF_GPU_DETECTION_METHOD_AUTO)
216217
{
217218
detectByDrm(options, gpus);
218219
if (gpus->length > 0) return NULL;
219220
}
221+
#endif
220222

221223
return detectByPci(options, gpus);
222224
}

0 commit comments

Comments
 (0)