build-sys: meson: check for shm_open even if it's in libc (FreeBSD), not librt
authorGreg V <greg@unrelenting.technology>
Thu, 2 Apr 2020 14:18:22 +0000 (17:18 +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 51ef844..2f9106a 100644 (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