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>
This commit is contained in:
Greg V 2020-04-02 17:18:22 +03:00 committed by PulseAudio Marge Bot
parent 4ff664a3eb
commit 6cc1f1d91c

View File

@ -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