build-sys: meson: Fix detection of SYS_memfd_create

It's a define resolving to a number, not a function.
This commit is contained in:
Jan Alexander Steffens (heftig) 2020-06-17 20:01:15 +02:00
parent b2d3399793
commit 0547ae49ba
No known key found for this signature in database
GPG key ID: 3B94A80E50A477C7

View file

@ -292,7 +292,7 @@ foreach f : check_functions
endif
endforeach
if cc.has_function('SYS_memfd_create', prefix : '#include <sys/syscall.h>')
if cc.has_header_symbol('sys/syscall.h', 'SYS_memfd_create')
cdata.set('HAVE_MEMFD', 1)
endif