aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2008-03-15 18:49:17 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2008-03-15 18:49:17 +0000
commit0fb86bb8bb24c97eba16d8d72c736b56399f7912 (patch)
tree694231e6367b9f899d49df7c9d68f7d2fa6e848f /audio
parent3350e0613d1226423fb738de743d20ca8af73ad0 (diff)
downloadports-0fb86bb8bb24c97eba16d8d72c736b56399f7912.tar.gz
ports-0fb86bb8bb24c97eba16d8d72c736b56399f7912.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/pulseaudio/files/patch-src_pulsecore_atomic.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/audio/pulseaudio/files/patch-src_pulsecore_atomic.h b/audio/pulseaudio/files/patch-src_pulsecore_atomic.h
index c63829b7e912..06515b9f9017 100644
--- a/audio/pulseaudio/files/patch-src_pulsecore_atomic.h
+++ b/audio/pulseaudio/files/patch-src_pulsecore_atomic.h
@@ -1,6 +1,6 @@
--- src/pulsecore/atomic.h.orig 2008-01-23 19:44:20.000000000 -0500
-+++ src/pulsecore/atomic.h 2008-03-02 01:02:20.000000000 -0500
-@@ -106,6 +106,108 @@ static inline int pa_atomic_ptr_cmpxchg(
++++ src/pulsecore/atomic.h 2008-03-15 14:48:41.000000000 -0400
+@@ -106,6 +106,113 @@ static inline int pa_atomic_ptr_cmpxchg(
return __sync_bool_compare_and_swap(&a->value, (long) old_p, (long) new_p);
}
@@ -13,11 +13,14 @@
+
+#if __FreeBSD_version < 600000
+#if defined(__i386__) || defined(__amd64__)
++#if defined(__amd64__)
++#define atomic_load_acq_64 atomic_load_acq_long
++#endif
+static inline u_int
+atomic_fetchadd_int(volatile u_int *p, u_int v)
+{
+ __asm __volatile(
-+ " " MPLOCKED " "
++ " " __XSTRING(MPLOCKED) " "
+ " xaddl %0, %1 ; "
+ "# atomic_fetchadd_int"
+ : "+r" (v),
@@ -27,8 +30,10 @@
+ return (v);
+}
+#elif defined(__sparc64__)
++#define atomic_load_acq_64 atomic_load_acq_long
+#define atomic_fetchadd_int atomic_add_int
+#elif defined(__ia64__)
++#define atomic_load_acq_64 atomic_load_acq_long
+static inline uint32_t
+atomic_fetchadd_int(volatile uint32_t *p, uint32_t v)
+{