From 6916780389b92929630932dcbcf7de09ce7d27a1 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 27 Jul 2020 19:43:52 +0000 Subject: [PATCH] buffer: guard gbm.h after 3742dc7144a8 ../src/buffer.c:25:10: fatal error: 'gbm.h' file not found #include ^~~~~~~ --- src/buffer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index d97bbbc..3cd78af 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include "linux-dmabuf-unstable-v1.h" @@ -32,6 +31,10 @@ #include "pixels.h" #include "config.h" +#ifdef ENABLE_SCREENCOPY_DMABUF +#include +#endif + extern struct wl_shm* wl_shm; extern struct zwp_linux_dmabuf_v1* zwp_linux_dmabuf; extern struct gbm_device* gbm_device;