1804589d50
From Juha Erkkila a long time ago. OK jasper@
13 lines
534 B
Plaintext
13 lines
534 B
Plaintext
$OpenBSD: patch-src_snd_oss_c,v 1.2 2007/05/29 14:49:16 claudio Exp $
|
|
--- src/snd_oss.c.orig Mon Mar 15 03:25:43 2004
|
|
+++ src/snd_oss.c Tue May 29 05:20:07 2007
|
|
@@ -358,7 +358,7 @@ qboolean SNDDMA_Init(struct sndinfo * s) {
|
|
|
|
if (!si->dma->buffer) {
|
|
si->dma->buffer = (unsigned char *) mmap(NULL, info.fragstotal * info.fragsize,
|
|
-#if defined(__FreeBSD__) && (__FreeBSD_version < 500000)
|
|
+#if defined(__FreeBSD__) && (__FreeBSD_version < 500000) || defined (__OpenBSD__)
|
|
PROT_READ|PROT_WRITE,
|
|
#else
|
|
PROT_WRITE,
|