mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
meson: fix misdetection of memfd_create()
This commit is contained in:
parent
1a323c6d21
commit
3e0a65f185
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ plugs_as_libs = get_option('core-plugins-as-shared-libraries')
|
|||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
if cc.has_function('memfd_create')
|
||||
if cc.has_function('memfd_create',
|
||||
args: ['-D_GNU_SOURCE=200809L'],
|
||||
prefix: '#include <sys/mman.h>')
|
||||
add_project_arguments('-DMEMFD_CREATE', language: 'c')
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue