aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2011-02-28 22:45:34 +0800
committerkwm <kwm@FreeBSD.org>2011-02-28 22:45:34 +0800
commit49e0bf1c024c4a3732baba8db466d1cd20c8b3ce (patch)
treee2ca772ff50de8f0e6d4c26e35ff568e31f1291c /audio
parent7d7f3deab090852480a52966ccd589e9e9602753 (diff)
downloadfreebsd-ports-graphics-49e0bf1c024c4a3732baba8db466d1cd20c8b3ce.tar.gz
freebsd-ports-graphics-49e0bf1c024c4a3732baba8db466d1cd20c8b3ce.tar.zst
freebsd-ports-graphics-49e0bf1c024c4a3732baba8db466d1cd20c8b3ce.zip
Fix the build with clang.
Diffstat (limited to 'audio')
-rw-r--r--audio/pulseaudio/files/patch-src_pulsecore_svolume_mmx.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/pulseaudio/files/patch-src_pulsecore_svolume_mmx.c b/audio/pulseaudio/files/patch-src_pulsecore_svolume_mmx.c
new file mode 100644
index 00000000000..345661e617f
--- /dev/null
+++ b/audio/pulseaudio/files/patch-src_pulsecore_svolume_mmx.c
@@ -0,0 +1,20 @@
+--- src/pulsecore/svolume_mmx.c.orig 2010-02-20 13:53:25.000000000 +0100
++++ src/pulsecore/svolume_mmx.c 2010-02-20 13:54:22.000000000 +0100
+@@ -153,7 +153,7 @@ pa_volume_s16ne_mmx (int16_t *samples, i
+ "6: \n\t"
+ " emms \n\t"
+
+- : "+r" (samples), "+r" (volumes), "+r" (length), "=D" ((pa_reg_x86)channel), "=&r" (temp)
++ : "+r" (samples), "+r" (volumes), "+r" (length), "=D" (channel), "=&r" (temp)
+ : "rm" ((pa_reg_x86)channels)
+ : "cc"
+ );
+@@ -229,7 +229,7 @@ pa_volume_s16re_mmx (int16_t *samples, i
+ "6: \n\t"
+ " emms \n\t"
+
+- : "+r" (samples), "+r" (volumes), "+r" (length), "=D" ((pa_reg_x86)channel), "=&r" (temp)
++ : "+r" (samples), "+r" (volumes), "+r" (length), "=D" (channel), "=&r" (temp)
+ : "rm" ((pa_reg_x86)channels)
+ : "cc"
+ );