mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
dlmisc.c: fix uclibc build
RTLD_DL_LINKMAP & RTLD_DI_ORIGIN, are unsupported on uClibc: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/tree/include/dlfcn.h#n106 This patch adds detection for uClibc because uClibc also defines __GLIBC__: https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00280.html BugLink: https://github.com/alsa-project/alsa-lib/pull/58 From: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
6eb78d41a1
commit
eec95e69e5
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ static inline void snd_dlpath_unlock(void) {}
|
|||
int snd_dlpath(char *path, size_t path_len, const char *name)
|
||||
{
|
||||
#ifdef HAVE_LIBDL
|
||||
#ifdef __GLIBC__
|
||||
#if defined(__GLIBC__) && !defined(__UCLIBC__)
|
||||
static int plugin_dir_set = 0;
|
||||
snd_dlpath_lock();
|
||||
if (!plugin_dir_set) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue