summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am1
-rw-r--r--src/pulsecore/mutex-posix.c1
-rw-r--r--src/pulsecore/refcnt.h1
-rw-r--r--src/pulsecore/thread-posix.c1
4 files changed, 1 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index bbdc46120..3b79acade 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -50,6 +50,7 @@ AM_CFLAGS += -DPA_DLSEARCHPATH=\"$(modlibexecdir)\"
AM_CFLAGS += -DPA_DEFAULT_CONFIG_DIR=\"$(PA_DEFAULT_CONFIG_DIR)\"
AM_CFLAGS += -DPA_BINARY=\"$(PA_BINARY)\"
AM_CFLAGS += -DPA_SYSTEM_RUNTIME_PATH=\"$(PA_SYSTEM_RUNTIME_PATH)\"
+AM_CFLAGS += -DAO_REQUIRE_CAS
# This cool debug trap works on i386/gcc only
AM_CFLAGS += '-DDEBUG_TRAP=__asm__("int $$3")'
diff --git a/src/pulsecore/mutex-posix.c b/src/pulsecore/mutex-posix.c
index 08baa3860..6f0e73365 100644
--- a/src/pulsecore/mutex-posix.c
+++ b/src/pulsecore/mutex-posix.c
@@ -26,7 +26,6 @@
#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 ff0a99238..fade9aa47 100644
--- a/src/pulsecore/refcnt.h
+++ b/src/pulsecore/refcnt.h
@@ -22,7 +22,6 @@
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 b634a6f6b..6ca46d705 100644
--- a/src/pulsecore/thread-posix.c
+++ b/src/pulsecore/thread-posix.c
@@ -26,7 +26,6 @@
#include <assert.h>
#include <pthread.h>
-#define AO_REQUIRE_CAS
#include <atomic_ops.h>
#include <pulse/xmalloc.h>