FreeBSD patch from q (see what happens for the other BSDs)

This commit is contained in:
Bill Currie 2002-11-20 17:20:52 +00:00
parent c0fbd45968
commit 261dcfe2a3
1 changed files with 2 additions and 1 deletions

View File

@ -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,