From 6cc1f1d91c9a056d41166438d3e652c439ae4a3f Mon Sep 17 00:00:00 2001 From: Greg V Date: Thu, 2 Apr 2020 17:18:22 +0300 Subject: [PATCH] build-sys: meson: check for shm_open even if it's in libc (FreeBSD), not librt Part-of: --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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