From 2df07f056422c7c8a6cf54fa72f2ef9db4e5e136 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 27 Apr 2021 11:37:16 -0500 Subject: [PATCH] gdk/wayland/cursor/os-compatibility: fix build when memfd_create is not available When building for homebrew/linuxbrew on Ubuntu 16.04, memfd_create() is not available and causes the build to fail. This adds a proper check for the function. --- gdk/wayland/cursor/os-compatibility.c | 1 - meson.build | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/cursor/os-compatibility.c b/gdk/wayland/cursor/os-compatibility.c index c59733964f..3818a6170e 100644 --- a/gdk/wayland/cursor/os-compatibility.c +++ b/gdk/wayland/cursor/os-compatibility.c @@ -32,7 +32,6 @@ #include #include -#define HAVE_MEMFD_CREATE #ifdef HAVE_MEMFD_CREATE #include #endif diff --git a/meson.build b/meson.build index b8de932e8e..789411e18b 100644 --- a/meson.build +++ b/meson.build @@ -193,6 +193,7 @@ check_functions = [ 'getpagesize', 'getresuid', 'lstat', + 'memfd_create', 'mmap', 'posix_fallocate', '_lock_file',