From 7205139b11480802112e730aafedc5bc1da68314 Mon Sep 17 00:00:00 2001 From: Harm te Hennepe Date: Tue, 24 May 2022 23:42:11 +0200 Subject: [PATCH] Don't call gbm symbols when they are not available --- src/fb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fb.c b/src/fb.c index 2f3db00..fcb571a 100644 --- a/src/fb.c +++ b/src/fb.c @@ -184,7 +184,11 @@ static void nvnc__fb_free(struct nvnc_fb* fb) free(fb->addr); break; case NVNC_FB_GBM_BO: +#ifdef HAVE_GBM gbm_bo_destroy(fb->bo); +#else + abort(); +#endif break; }