mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
meson: fix false positive detection of memfd_create
Add the arguments to `has_function` to properly detect availability of the function on SDK environments.
This commit is contained in:
parent
01eca82d33
commit
9d5d84a835
1 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,8 @@ is_debug_build = get_option('buildtype').startswith('debug')
|
|||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
if cc.has_function('memfd_create')
|
||||
if cc.has_function('memfd_create',
|
||||
args: ['-D_GNU_SOURCE'], prefix: '#include <sys/mman.h>')
|
||||
add_project_arguments('-DMEMFD_CREATE', language: 'c')
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue