build-sys: meson: support memfd without SYS_memfd_create (FreeBSD 13)
authorGreg V <greg@unrelenting.technology>
Fri, 3 Apr 2020 16:05:22 +0000 (19:05 +0300)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 18 Jan 2021 16:33:53 +0000 (16:33 +0000)
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>

meson.build

index 3d3128d..9741619 100644 (file)
@@ -333,7 +333,8 @@ foreach f : check_functions
   endif
 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)
 endif