forked from AuroraMiddleware/gtk
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:
parent
82f8fc3bee
commit
2a610267eb
@ -32,7 +32,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define HAVE_MEMFD_CREATE
|
|
||||||
#ifdef HAVE_MEMFD_CREATE
|
#ifdef HAVE_MEMFD_CREATE
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -193,6 +193,7 @@ check_functions = [
|
|||||||
'getpagesize',
|
'getpagesize',
|
||||||
'getresuid',
|
'getresuid',
|
||||||
'lstat',
|
'lstat',
|
||||||
|
'memfd_create',
|
||||||
'mmap',
|
'mmap',
|
||||||
'posix_fallocate',
|
'posix_fallocate',
|
||||||
'_lock_file',
|
'_lock_file',
|
||||||
|
Loading…
Reference in New Issue
Block a user