aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index de159204..e1b9eb51 100644
--- a/meson.build
+++ b/meson.build
@@ -12,6 +12,10 @@ is_debug_build = get_option('buildtype').startswith('debug')
cc = meson.get_compiler('c')
+if cc.has_function('memfd_create')
+ add_project_arguments('-DMEMFD_CREATE', language: 'c')
+endif
+
add_project_arguments(
['-D_POSIX_C_SOURCE=200809L', '-D_GNU_SOURCE=200809L'] +
(is_debug_build