0001-alsatest-fix-the-check-to-treat-alsalib-1.1.x-as-correct.patch 1.2 KB

1234567891011121314151617181920212223242526272829
  1. From b8f98d956501dfa4ce03a137f15d404930a56066 Mon Sep 17 00:00:00 2001
  2. From: Dmitry Shachnev <mitya57@gmail.com>
  3. Date: Sat, 5 Mar 2016 10:25:33 +0300
  4. Subject: [PATCH] alsatest: Fix the check to treat alsalib 1.1.x as correct
  5. version
  6. Task-number: QTBUG-51681
  7. Change-Id: I63266c33342f02f4d1a5ea5786f5fbc5a1b421b3
  8. Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
  9. [Upstream commit: https://github.com/qtproject/qtbase/commit/b8f98d956501dfa4ce03a137f15d404930a56066]
  10. [Patch fixing ALSA detection. Taken from Qt5, but applies fine to Qt4.]
  11. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  12. ---
  13. config.tests/unix/alsa/alsatest.cpp | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/config.tests/unix/alsa/alsatest.cpp b/config.tests/unix/alsa/alsatest.cpp
  16. index cab6533977..0b45819b61 100644
  17. --- a/config.tests/unix/alsa/alsatest.cpp
  18. +++ b/config.tests/unix/alsa/alsatest.cpp
  19. @@ -32,7 +32,7 @@
  20. ****************************************************************************/
  21. #include <alsa/asoundlib.h>
  22. -#if(!(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 10))
  23. +#if SND_LIB_VERSION < 0x1000a // 1.0.10
  24. #error "Alsa version found too old, require >= 1.0.10"
  25. #endif