diff options
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/mutex-posix.c | 2 | ||||
-rw-r--r-- | src/pulsecore/refcnt.h | 1 | ||||
-rw-r--r-- | src/pulsecore/thread-posix.c | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/mutex-posix.c b/src/pulsecore/mutex-posix.c index d0156dbf..08baa386 100644 --- a/src/pulsecore/mutex-posix.c +++ b/src/pulsecore/mutex-posix.c @@ -25,6 +25,8 @@ #include <assert.h> #include <pthread.h> + +#define AO_REQUIRE_CAS #include <atomic_ops.h> #include <pulse/xmalloc.h> diff --git a/src/pulsecore/refcnt.h b/src/pulsecore/refcnt.h index fade9aa4..ff0a9923 100644 --- a/src/pulsecore/refcnt.h +++ b/src/pulsecore/refcnt.h @@ -22,6 +22,7 @@ USA. ***/ +#define AO_REQUIRE_CAS #include <atomic_ops.h> #define PA_REFCNT_DECLARE volatile AO_t _ref diff --git a/src/pulsecore/thread-posix.c b/src/pulsecore/thread-posix.c index 15ade290..54f21b75 100644 --- a/src/pulsecore/thread-posix.c +++ b/src/pulsecore/thread-posix.c @@ -25,6 +25,8 @@ #include <assert.h> #include <pthread.h> + +#define AO_REQUIRE_CAS #include <atomic_ops.h> #include <pulse/xmalloc.h> |