Drop the shm_open(3) patch.

This commit is contained in:
ajacoutot 2013-06-01 12:05:14 +00:00
parent 1b5372efac
commit ce5868d526
2 changed files with 3 additions and 16 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.17 2013/03/11 11:07:40 espie Exp $
# $OpenBSD: Makefile,v 1.18 2013/06/01 12:05:14 ajacoutot Exp $
ONLY_FOR_ARCHS = amd64 i386 macppc
@ -18,6 +18,8 @@ PKGNAME-main = openarena-${V}
PKGNAME-server = openarena-server-${V}
PKGNAME-data = openarena-data-${V}
REVISION-main = 0
PKG_ARCH-data = *
DISTNAME = openarena-${V}

View File

@ -1,15 +0,0 @@
$OpenBSD: patch-code_client_libmumblelink_c,v 1.2 2012/03/18 15:47:28 kirby Exp $
--- code/client/libmumblelink.c.orig Sat Dec 24 14:29:31 2011
+++ code/client/libmumblelink.c Tue Mar 6 22:44:31 2012
@@ -101,7 +101,11 @@ int mumble_link(const char* name)
return 0;
snprintf(file, sizeof (file), "/MumbleLink.%d", getuid());
+#ifdef __OpenBSD__
+ shmfd = open(file, O_RDWR, S_IRUSR | S_IWUSR);
+#else
shmfd = shm_open(file, O_RDWR, S_IRUSR | S_IWUSR);
+#endif
if(shmfd < 0) {
return -1;
}