x86.patch 950 B

123456789101112131415161718192021222324252627282930313233343536
  1. From 9bd5a7ae5435469c3557a3d70e762791cb3dc5c7 Mon Sep 17 00:00:00 2001
  2. From: Antoine Jacoutot <ajacoutot@gnome.org>
  3. Date: Mon, 20 Jan 2014 15:44:09 +0100
  4. Subject: [PATCH] audioresample: fix build on BSD
  5. On i386, EMMINTRIN is defined but not usable without sse so check for
  6. __SSE__ and __SSE2__ as well.
  7. https://bugzilla.gnome.org/show_bug.cgi?id=670690
  8. ---
  9. gst/audioresample/resample.c | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. diff --git a/gst/audioresample/resample.c b/gst/audioresample/resample.c
  12. index 98d006c..481fa01 100644
  13. --- a/gst/audioresample/resample.c
  14. +++ b/gst/audioresample/resample.c
  15. @@ -77,13 +77,13 @@
  16. #define EXPORT G_GNUC_INTERNAL
  17. #ifdef _USE_SSE
  18. -#ifndef HAVE_XMMINTRIN_H
  19. +#if !defined(__SSE__) || !defined(HAVE_XMMINTRIN_H)
  20. #undef _USE_SSE
  21. #endif
  22. #endif
  23. #ifdef _USE_SSE2
  24. -#ifndef HAVE_EMMINTRIN_H
  25. +#if !defined(__SSE2__) || !defined(HAVE_XMMINTRIN_H)
  26. #undef _USE_SSE2
  27. #endif
  28. #endif
  29. --
  30. 1.8.5.3