diff --git a/meson.build b/meson.build index 892a01f69..feedd1063 100644 --- a/meson.build +++ b/meson.build @@ -117,7 +117,7 @@ if cc.has_function('mkstemp', prefix : '#include ') cdata.set('HAVE_MKSTEMP', 1) endif -if cc.has_function('memfd_create', prefix : '#include ') +if cc.has_function('memfd_create', prefix : '#include ', args : [ '-D__USE_GNU' ]) cdata.set('HAVE_MEMFD_CREATE', 1) endif