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