diff options
author | Wim Taymans <wtaymans@redhat.com> | 2017-11-27 11:58:33 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2017-11-27 11:58:33 +0100 |
commit | 77838fd73452d0573a775dec8de61f62c7b295de (patch) | |
tree | 84759c57e76ff95fcf9c8cf02ad11635f79f54b3 /meson.build | |
parent | d7c26c4b59c77c75d904fc20e273987adcd348f0 (diff) |
mem: fix for memfd_create check
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index feedd106..d8bdb580 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>', args : [ '-D__USE_GNU' ]) +if cc.has_function('memfd_create', prefix : '#include <sys/mman.h>', args : [ '-D_GNU_SOURCE' ]) cdata.set('HAVE_MEMFD_CREATE', 1) endif |