shm: NetBSD build fix

shm_unlink() and friends live in librt on NetBSD. Adapt build system.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1323>
This commit is contained in:
Thomas Klausner 2021-11-08 20:18:51 +01:00 committed by GStreamer Marge Bot
parent 79c4275ed4
commit 49449dfa41

View file

@ -12,7 +12,8 @@ if get_option('shm').disabled()
subdir_done()
endif
if ['darwin', 'ios'].contains(host_system) or host_system.endswith('bsd')
# NetBSD has shm_* in librt
if ['darwin', 'ios', 'freebsd', 'openbsd'].contains(host_system)
rt_dep = []
shm_enabled = true
else