From c9e7b3e8f5596e633948db41160e2fd1af03230a Mon Sep 17 00:00:00 2001 From: Koop Mast Date: Thu, 28 Jun 2012 08:47:09 +0000 Subject: [PATCH] Fix the build on i386. Reported by: H , decke@ --- .../files/patch-gst_audioresample_resample.c | 12 +++++++++++ ...gst_audioresample_speex-resampler-double.c | 21 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 multimedia/gstreamer-plugins/files/patch-gst_audioresample_resample.c create mode 100644 multimedia/gstreamer-plugins/files/patch-gst_audioresample_speex-resampler-double.c diff --git a/multimedia/gstreamer-plugins/files/patch-gst_audioresample_resample.c b/multimedia/gstreamer-plugins/files/patch-gst_audioresample_resample.c new file mode 100644 index 000000000000..aa5c15195dd3 --- /dev/null +++ b/multimedia/gstreamer-plugins/files/patch-gst_audioresample_resample.c @@ -0,0 +1,12 @@ +--- gst/audioresample/resample.c.orig 2012-06-28 10:15:58.000000000 +0200 ++++ gst/audioresample/resample.c 2012-06-28 10:22:41.000000000 +0200 +@@ -79,6 +79,9 @@ + #ifdef _USE_SSE + #ifndef HAVE_XMMINTRIN_H + #undef _USE_SSE ++/* this is a hack to build on i386, there the configure check for emmintrin.h ++ doesn't fail but the xmmintrin.h does. */ ++#undef _USE_SSE2 + #endif + #endif + diff --git a/multimedia/gstreamer-plugins/files/patch-gst_audioresample_speex-resampler-double.c b/multimedia/gstreamer-plugins/files/patch-gst_audioresample_speex-resampler-double.c new file mode 100644 index 000000000000..97d8e785a2ca --- /dev/null +++ b/multimedia/gstreamer-plugins/files/patch-gst_audioresample_speex-resampler-double.c @@ -0,0 +1,21 @@ +--- gst/audioresample/speex_resampler_double.c.orig 2012-06-28 10:31:31.000000000 +0200 ++++ gst/audioresample/speex_resampler_double.c 2012-06-28 10:33:01.000000000 +0200 +@@ -17,7 +17,18 @@ + * Boston, MA 02111-1307, USA. + */ + ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ ++#ifdef _USE_SSE ++#ifndef HAVE_XMMINTRIN_H ++#undef _USE_SSE ++#undef _USE_SSE2 ++#else + #define _USE_SSE2 ++#endif ++#endif + #define FLOATING_POINT + #define DOUBLE_PRECISION + #define OUTSIDE_SPEEX