From 494feb2eeaa1d4efcf1d0dc014d008a0e9d73cbd Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Fri, 16 Sep 2022 19:10:44 +0200 Subject: [PATCH] Fix build with older libgbm The code for the !HAVE_GBM_BO_GET_FD_FOR_PLANE case needed an explicit constructor call. --- src/backends/drm/gbm_dmabuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/gbm_dmabuf.h b/src/backends/drm/gbm_dmabuf.h index d6cbcf3e5f..79a5915948 100644 --- a/src/backends/drm/gbm_dmabuf.h +++ b/src/backends/drm/gbm_dmabuf.h @@ -35,7 +35,7 @@ inline DmaBufAttributes dmaBufAttributesForBo(gbm_bo *bo) return attributes; } - attributes.fd[0] = gbm_bo_get_fd(bo); + attributes.fd[0] = FileDescriptor{gbm_bo_get_fd(bo)}; attributes.offset[0] = gbm_bo_get_offset(bo, 0); attributes.pitch[0] = gbm_bo_get_stride_for_plane(bo, 0); #endif