summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2020-04-02 17:18:22 +0300
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>2021-01-18 16:33:53 +0000
commit6cc1f1d91c9a056d41166438d3e652c439ae4a3f (patch)
tree9386f684e36a79704b0838e67f33074ee9296182
parent4ff664a3eb7542826f56cf941b7e9d5c080ceffc (diff)
build-sys: meson: check for shm_open even if it's in libc (FreeBSD), not librt
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 51ef84486..2f9106a57 100644
--- a/meson.build
+++ b/meson.build
@@ -426,7 +426,7 @@ endforeach
cap_dep = cc.find_library('cap', required : false)
shm_dep = cc.find_library('rt', required : false)
-if shm_dep.found()
+if cc.has_function('shm_open', dependencies : shm_dep)
cdata.set('HAVE_SHM_OPEN', 1)
endif