mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
FreeBSD patch from q (see what happens for the other BSDs)
This commit is contained in:
parent
c0fbd45968
commit
261dcfe2a3
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ SNDDMA_Init (void)
|
|||
if (mmaped_io) { // memory map the dma buffer
|
||||
shm->buffer = (unsigned char *) mmap
|
||||
(NULL, info.fragstotal * info.fragsize,
|
||||
#if (defined(BSD)) // workaround for BSD OSS quirk
|
||||
#if (defined(__FreeBSD__) && (__FreeBSD_version < 500000))
|
||||
// workaround for BSD OSS quirk
|
||||
PROT_READ | PROT_WRITE,
|
||||
#else
|
||||
PROT_WRITE,
|
||||
|
|
Loading…
Reference in a new issue