aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-08-14 09:59:23 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-08-14 09:59:23 +0000
commit54c1660a1e6834aaba9b86a5cca6d22eebc28a41 (patch)
treeba877ef70c20aa78b633af3c9fefff099d7bc2f1 /meson.build
parentmeson: bump version to 1.18.0 (diff)
parentosc: regression: fix OSC-111 handling of alpha changes (diff)
Merge branch 'master' into releases/1.18
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 6 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index a99d1a48..2bec645e 100644
--- a/meson.build
+++ b/meson.build
@@ -12,12 +12,16 @@ 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
# Missing on DragonFly, FreeBSD < 14.1
-if cc.has_function('execvpe')
+if cc.has_function('execvpe',
+ args: ['-D_GNU_SOURCE'],
+ prefix: '#include <unistd.h>')
add_project_arguments('-DEXECVPE', language: 'c')
endif