diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
commit | 9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch) | |
tree | 9b071a8105704e992946dcd6b801e9fcb7635142 /audio/dream/files/patch-src_sound_pa__ringbuffer.c | |
parent | 5a20e7990eb544509174d617d359bf0d4ac64737 (diff) |
Notes
Diffstat (limited to 'audio/dream/files/patch-src_sound_pa__ringbuffer.c')
-rw-r--r-- | audio/dream/files/patch-src_sound_pa__ringbuffer.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/dream/files/patch-src_sound_pa__ringbuffer.c b/audio/dream/files/patch-src_sound_pa__ringbuffer.c new file mode 100644 index 000000000000..00debdd6be24 --- /dev/null +++ b/audio/dream/files/patch-src_sound_pa__ringbuffer.c @@ -0,0 +1,20 @@ +--- src/sound/pa_ringbuffer.c.orig 2013-11-11 16:33:41 UTC ++++ src/sound/pa_ringbuffer.c +@@ -72,12 +72,13 @@ + ****************/ + + #if defined(__APPLE__) || defined(__FreeBSD__) +-# include <libkern/OSAtomic.h> ++# include <sys/types.h> ++# include <machine/atomic.h> + /* Here are the memory barrier functions. Mac OS X and FreeBSD only provide + full memory barriers, so the three types of barriers are the same. */ +-# define PaUtil_FullMemoryBarrier() OSMemoryBarrier() +-# define PaUtil_ReadMemoryBarrier() OSMemoryBarrier() +-# define PaUtil_WriteMemoryBarrier() OSMemoryBarrier() ++# define PaUtil_FullMemoryBarrier() mb() ++# define PaUtil_ReadMemoryBarrier() rmb() ++# define PaUtil_WriteMemoryBarrier() wmb() + #elif defined(__GNUC__) + /* GCC understands volatile asm and "memory" to mean it + * should not reorder memory read/writes */ |