summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2017-11-24 18:58:22 +0100
committerWim Taymans <wtaymans@redhat.com>2017-11-24 18:58:22 +0100
commitf902a34290391c6ac90bebd0001541f8e563965d (patch)
tree17721ae05775ffa96d50720bd928576d87483152 /meson.build
parent4516fcecc4645e8a9897ebd88c3ccf21af775c96 (diff)
build: make sure memfd_create is found
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 892a01f6..feedd106 100644
--- a/meson.build
+++ b/meson.build
@@ -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>')
+if cc.has_function('memfd_create', prefix : '#include <sys/mman.h>', args : [ '-D__USE_GNU' ])
cdata.set('HAVE_MEMFD_CREATE', 1)
endif