build-sys: meson: support memfd without SYS_memfd_create (FreeBSD 13)

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
This commit is contained in:
Greg V 2020-04-03 19:05:22 +03:00 committed by PulseAudio Marge Bot
parent 51fecacd46
commit e7465e1a9b

View file

@ -333,7 +333,8 @@ foreach f : check_functions
endif endif
endforeach endforeach
if cc.has_header_symbol('sys/syscall.h', 'SYS_memfd_create') if cc.has_header_symbol('sys/syscall.h', 'SYS_memfd_create') \
or cc.has_function('memfd_create')
cdata.set('HAVE_MEMFD', 1) cdata.set('HAVE_MEMFD', 1)
endif endif