buffer: guard gbm.h after 3742dc7144

../src/buffer.c:25:10: fatal error: 'gbm.h' file not found
 #include <gbm.h>
          ^~~~~~~
pull/62/head v0.2.0
Jan Beich 2020-07-27 19:43:52 +00:00 committed by Andri Yngvason
parent 800b0d6cb7
commit 6916780389
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,6 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <libdrm/drm_fourcc.h> #include <libdrm/drm_fourcc.h>
#include <wayland-client.h> #include <wayland-client.h>
#include <gbm.h>
#include <pixman.h> #include <pixman.h>
#include "linux-dmabuf-unstable-v1.h" #include "linux-dmabuf-unstable-v1.h"
@ -32,6 +31,10 @@
#include "pixels.h" #include "pixels.h"
#include "config.h" #include "config.h"
#ifdef ENABLE_SCREENCOPY_DMABUF
#include <gbm.h>
#endif
extern struct wl_shm* wl_shm; extern struct wl_shm* wl_shm;
extern struct zwp_linux_dmabuf_v1* zwp_linux_dmabuf; extern struct zwp_linux_dmabuf_v1* zwp_linux_dmabuf;
extern struct gbm_device* gbm_device; extern struct gbm_device* gbm_device;