summaryrefslogtreecommitdiff
path: root/multimedia/gst0-plugins-base/x86.patch
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-02-16 21:09:29 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:27:30 -0500
commit273ece360556556182a42e4a75c21560da04f022 (patch)
tree0aa5477fe4f86f87fb1dd75350e4c78cada806ac /multimedia/gst0-plugins-base/x86.patch
parent9281fbbba337d0de6ee846d431a7541ccbe27b45 (diff)
downloadslackbuilds-273ece360556556182a42e4a75c21560da04f022.tar.gz
multimedia/gst0-plugins-base: Added (gst plugins base set, v0).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'multimedia/gst0-plugins-base/x86.patch')
-rw-r--r--multimedia/gst0-plugins-base/x86.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/multimedia/gst0-plugins-base/x86.patch b/multimedia/gst0-plugins-base/x86.patch
new file mode 100644
index 0000000000..127ca6af83
--- /dev/null
+++ b/multimedia/gst0-plugins-base/x86.patch
@@ -0,0 +1,35 @@
+From 9bd5a7ae5435469c3557a3d70e762791cb3dc5c7 Mon Sep 17 00:00:00 2001
+From: Antoine Jacoutot <ajacoutot@gnome.org>
+Date: Mon, 20 Jan 2014 15:44:09 +0100
+Subject: [PATCH] audioresample: fix build on BSD
+
+On i386, EMMINTRIN is defined but not usable without sse so check for
+__SSE__ and __SSE2__ as well.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=670690
+---
+ gst/audioresample/resample.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/gst/audioresample/resample.c b/gst/audioresample/resample.c
+index 98d006c..481fa01 100644
+--- a/gst/audioresample/resample.c
++++ b/gst/audioresample/resample.c
+@@ -77,13 +77,13 @@
+ #define EXPORT G_GNUC_INTERNAL
+
+ #ifdef _USE_SSE
+-#ifndef HAVE_XMMINTRIN_H
++#if !defined(__SSE__) || !defined(HAVE_XMMINTRIN_H)
+ #undef _USE_SSE
+ #endif
+ #endif
+
+ #ifdef _USE_SSE2
+-#ifndef HAVE_EMMINTRIN_H
++#if !defined(__SSE2__) || !defined(HAVE_XMMINTRIN_H)
+ #undef _USE_SSE2
+ #endif
+ #endif
+--
+1.8.5.3