diff --git a/src/wayland-shm.c b/src/wayland-shm.c index c4cd390c..4b52b0f2 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -304,8 +304,10 @@ shm_create_pool(struct wl_client *client, struct wl_resource *resource, uint32_t id, int fd, int32_t size) { struct wl_shm_pool *pool; +#ifdef HAVE_MEMFD_CREATE struct stat statbuf; int seals; +#endif int prot; int flags;