summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2020-04-03 19:05:22 +0300
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>2021-01-18 16:33:53 +0000
commite7465e1a9ba82a2b095de32f020ea99f5f917eb8 (patch)
tree07b48b52f5d0b1af19a113a3a2cd6f2502a37155 /meson.build
parent51fecacd4698258a3df2ba9d7326d2fa613174a0 (diff)
build-sys: meson: support memfd without SYS_memfd_create (FreeBSD 13)
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 3d3128d2b..974161930 100644
--- a/meson.build
+++ b/meson.build
@@ -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