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',