mem: fix for memfd_create check

This commit is contained in:
Wim Taymans 2017-11-27 11:58:33 +01:00
parent d7c26c4b59
commit 77838fd734
3 changed files with 5 additions and 63 deletions

View file

@ -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