59efdb23a2
Comments and OK from sthen@.
16 lines
505 B
Plaintext
16 lines
505 B
Plaintext
$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;
|
|
}
|