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_linux_pa__shm__ringbuffer.c | |
parent | MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out, (diff) |
Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.
With hat: portmgr
Sponsored by: Absolight
Diffstat (limited to 'audio/dream/files/patch-src_linux_pa__shm__ringbuffer.c')
-rw-r--r-- | audio/dream/files/patch-src_linux_pa__shm__ringbuffer.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/dream/files/patch-src_linux_pa__shm__ringbuffer.c b/audio/dream/files/patch-src_linux_pa__shm__ringbuffer.c new file mode 100644 index 000000000000..c2d2496dbeb6 --- /dev/null +++ b/audio/dream/files/patch-src_linux_pa__shm__ringbuffer.c @@ -0,0 +1,20 @@ +--- src/linux/pa_shm_ringbuffer.c.orig 2013-11-11 16:33:40 UTC ++++ src/linux/pa_shm_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 */ |