Skip to content

Commit

Permalink
dlmisc: the snd_plugin_dir_set / snd_plugin_dir must be declared even…
Browse files Browse the repository at this point in the history
… for \!DL_ORIGIN_AVAILABLE

Fixes: 8580c08 ("dlsym: add support for ALSA_PLUGIN_DIR environment variable")
BugLink: #91
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
perexg committed Oct 22, 2020
1 parent 49bd4b1 commit ad8c8e5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/dlmisc.c
Expand Up @@ -42,11 +42,9 @@
#ifndef PIC
struct snd_dlsym_link *snd_dlsym_start = NULL;
#endif
#ifdef DL_ORIGIN_AVAILABLE
static int snd_plugin_dir_set = 0;
static char *snd_plugin_dir = NULL;
#endif
#endif

#if defined(DL_ORIGIN_AVAILABLE) && defined(HAVE_LIBPTHREAD)
static pthread_mutex_t snd_dlpath_mutex = PTHREAD_MUTEX_INITIALIZER;
Expand Down

0 comments on commit ad8c8e5

Please sign in to comment.