mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
mem: fix for memfd_create check
This commit is contained in:
parent
d7c26c4b59
commit
77838fd734
3 changed files with 5 additions and 63 deletions
|
|
@ -117,7 +117,7 @@ if cc.has_function('mkstemp', prefix : '#include <stdlib.h>')
|
|||
cdata.set('HAVE_MKSTEMP', 1)
|
||||
endif
|
||||
|
||||
if cc.has_function('memfd_create', prefix : '#include <sys/mman.h>', args : [ '-D__USE_GNU' ])
|
||||
if cc.has_function('memfd_create', prefix : '#include <sys/mman.h>', args : [ '-D_GNU_SOURCE' ])
|
||||
cdata.set('HAVE_MEMFD_CREATE', 1)
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue