0002-dlmisc-the-snd_plugin_dir_set.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From ad8c8e5503980295dd8e5e54a6285d2d7e32eb1e Mon Sep 17 00:00:00 2001
  2. From: Jaroslav Kysela <perex@perex.cz>
  3. Date: Thu, 22 Oct 2020 20:57:32 +0200
  4. Subject: [PATCH] dlmisc: the snd_plugin_dir_set / snd_plugin_dir must be
  5. declared even for \!DL_ORIGIN_AVAILABLE
  6. Fixes: 8580c081c2 ("dlsym: add support for ALSA_PLUGIN_DIR environment variable")
  7. BugLink: https://github.com/alsa-project/alsa-lib/issues/91
  8. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  9. Downloaded from upstream commit
  10. https://github.com/alsa-project/alsa-lib/commit/ad8c8e5503980295dd8e5e54a6285d2d7e32eb1e
  11. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  12. ---
  13. src/dlmisc.c | 2 --
  14. 1 file changed, 2 deletions(-)
  15. diff --git a/src/dlmisc.c b/src/dlmisc.c
  16. index c9517c55..f20eb593 100644
  17. --- a/src/dlmisc.c
  18. +++ b/src/dlmisc.c
  19. @@ -42,11 +42,9 @@
  20. #ifndef PIC
  21. struct snd_dlsym_link *snd_dlsym_start = NULL;
  22. #endif
  23. -#ifdef DL_ORIGIN_AVAILABLE
  24. static int snd_plugin_dir_set = 0;
  25. static char *snd_plugin_dir = NULL;
  26. #endif
  27. -#endif
  28. #if defined(DL_ORIGIN_AVAILABLE) && defined(HAVE_LIBPTHREAD)
  29. static pthread_mutex_t snd_dlpath_mutex = PTHREAD_MUTEX_INITIALIZER;