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.
This commit is contained in:
David Lechner 2021-04-27 11:37:16 -05:00
parent 82f8fc3bee
commit 2a610267eb
2 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,6 @@
#include <string.h>
#include <stdlib.h>
#define HAVE_MEMFD_CREATE
#ifdef HAVE_MEMFD_CREATE
#include <sys/mman.h>
#endif

View File

@ -193,6 +193,7 @@ check_functions = [
'getpagesize',
'getresuid',
'lstat',
'memfd_create',
'mmap',
'posix_fallocate',
'_lock_file',