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

View file

@ -252,7 +252,8 @@ SNDDMA_Init (void)
if (mmaped_io) { // memory map the dma buffer if (mmaped_io) { // memory map the dma buffer
shm->buffer = (unsigned char *) mmap shm->buffer = (unsigned char *) mmap
(NULL, info.fragstotal * info.fragsize, (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, PROT_READ | PROT_WRITE,
#else #else
PROT_WRITE, PROT_WRITE,