configure: check for shm_open() in OpenBSD

In OpenBSD there is no "actual" librt that programs can link with,
instead the system/base libc provides the functions one would
customarily find there.

https://bugzilla.gnome.org/show_bug.cgi?id=766441
This commit is contained in:
Alex-P. Natsios 2016-05-14 16:59:14 +03:00 committed by Sebastian Dröge
parent 7507b14dcd
commit a865f6545a

View file

@ -1813,6 +1813,9 @@ AG_GST_CHECK_FEATURE(SHM, [POSIX shared memory source and sink], shm, [
AC_DEFINE(HAVE_OSX,[1],[Apple Mac OS X operating system detected])
HAVE_SHM=yes
;;
*-*-OpenBSD*)
HAVE_SHM=yes
;;
*)
AC_CHECK_LIB([rt], [shm_open],
AC_CHECK_DECL([MSG_NOSIGNAL], HAVE_SHM=yes, HAVE_SHM=no, [