configure: check for shm_open() in OpenBSD
authorAlex-P. Natsios <drakevr@2f30.org>
Sat, 14 May 2016 13:59:14 +0000 (16:59 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 14 May 2016 14:10:27 +0000 (17:10 +0300)
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

configure.ac

index 0d6851b..ce06ab6 100644 (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, [