|
@@ -1,4 +1,10 @@
|
|
-alsa-lib: provide dummy definitions of RTLD_* if necessary
|
|
|
|
|
|
+From ff91d50a250e10a419bcd35176f3069161ac33bb Mon Sep 17 00:00:00 2001
|
|
|
|
+From: Sonic Zhang <sonic.zhang@analog.com>
|
|
|
|
+Date: Fri, 13 Apr 2018 09:11:23 +0200
|
|
|
|
+Subject: [PATCH] alsa-lib: provide dummy definitions of RTLD_* if necessary
|
|
|
|
+MIME-Version: 1.0
|
|
|
|
+Content-Type: text/plain; charset=UTF-8
|
|
|
|
+Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
The FLAT GNU toolchain (e.g. blackfin) doesn't include the dlfcn.h header
|
|
The FLAT GNU toolchain (e.g. blackfin) doesn't include the dlfcn.h header
|
|
file, so we need to guard that include. Additionally, provide dummy
|
|
file, so we need to guard that include. Additionally, provide dummy
|
|
@@ -8,45 +14,34 @@ provided by dlfcn.h.
|
|
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
|
|
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
|
|
[Thomas: don't add separate dlmisc.h, move dummy defs to global.h]
|
|
[Thomas: don't add separate dlmisc.h, move dummy defs to global.h]
|
|
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
|
|
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
|
|
|
|
+[Jörg: update for 1.1.6]
|
|
|
|
+Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
|
|
|
+---
|
|
|
|
+ modules/mixer/simple/sbasedl.c | 4 +++-
|
|
|
|
+ src/mixer/simple_abst.c | 3 +++
|
|
|
|
+ 2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
|
|
-diff --git a/include/global.h b/include/global.h
|
|
|
|
---- a/include/global.h
|
|
|
|
-+++ b/include/global.h
|
|
|
|
-@@ -97,6 +97,16 @@ extern struct snd_dlsym_link *snd_dlsym_
|
|
|
|
- /** \brief Returns the version of a dynamic symbol as a string. */
|
|
|
|
- #define SND_DLSYM_VERSION(version) __STRING(version)
|
|
|
|
-
|
|
|
|
-+/* RTLD_NOW and RTLD_GLOBAL (used for 'mode' in snd_dlopen) are not defined
|
|
|
|
-+ * on all arches (e.g. blackfin), so provide a dummy definition here. */
|
|
|
|
-+#ifndef RTLD_NOW
|
|
|
|
-+#define RTLD_NOW 0
|
|
|
|
-+#endif
|
|
|
|
-+
|
|
|
|
-+#ifndef RTLD_GLOBAL
|
|
|
|
-+#define RTLD_GLOBAL 0
|
|
|
|
-+#endif
|
|
|
|
-+
|
|
|
|
- void *snd_dlopen(const char *file, int mode);
|
|
|
|
- void *snd_dlsym(void *handle, const char *name, const char *version);
|
|
|
|
- int snd_dlclose(void *handle);
|
|
|
|
diff --git a/modules/mixer/simple/sbasedl.c b/modules/mixer/simple/sbasedl.c
|
|
diff --git a/modules/mixer/simple/sbasedl.c b/modules/mixer/simple/sbasedl.c
|
|
|
|
+index d8cbf0f1..daa0ab30 100644
|
|
--- a/modules/mixer/simple/sbasedl.c
|
|
--- a/modules/mixer/simple/sbasedl.c
|
|
+++ b/modules/mixer/simple/sbasedl.c
|
|
+++ b/modules/mixer/simple/sbasedl.c
|
|
-@@ -27,7 +27,9 @@
|
|
|
|
|
|
+@@ -27,8 +27,10 @@
|
|
#include <fcntl.h>
|
|
#include <fcntl.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/ioctl.h>
|
|
#include <math.h>
|
|
#include <math.h>
|
|
-+#include "config.h"
|
|
|
|
|
|
+-#include <dlfcn.h>
|
|
|
|
+ #include "config.h"
|
|
+#ifdef HAVE_DLFCN
|
|
+#ifdef HAVE_DLFCN
|
|
- #include <dlfcn.h>
|
|
|
|
|
|
++#include <dlfcn.h>
|
|
+#endif
|
|
+#endif
|
|
--#include "config.h"
|
|
|
|
#include "asoundlib.h"
|
|
#include "asoundlib.h"
|
|
#include "mixer_abst.h"
|
|
#include "mixer_abst.h"
|
|
|
|
+ #include "sbase.h"
|
|
diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c
|
|
diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c
|
|
|
|
+index 9c61cb58..0ca58fe0 100644
|
|
--- a/src/mixer/simple_abst.c
|
|
--- a/src/mixer/simple_abst.c
|
|
+++ b/src/mixer/simple_abst.c
|
|
+++ b/src/mixer/simple_abst.c
|
|
-@@ -34,7 +34,9 @@
|
|
|
|
|
|
+@@ -34,7 +34,10 @@
|
|
#include <fcntl.h>
|
|
#include <fcntl.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/ioctl.h>
|
|
#include <math.h>
|
|
#include <math.h>
|
|
@@ -54,6 +49,9 @@ diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c
|
|
+#ifdef HAVE_DLFCN
|
|
+#ifdef HAVE_DLFCN
|
|
#include <dlfcn.h>
|
|
#include <dlfcn.h>
|
|
+#endif
|
|
+#endif
|
|
--#include "config.h"
|
|
|
|
- #include "asoundlib.h"
|
|
|
|
|
|
+ #include "mixer_local.h"
|
|
#include "mixer_simple.h"
|
|
#include "mixer_simple.h"
|
|
|
|
+
|
|
|
|
+--
|
|
|
|
+2.14.3
|
|
|
|
+
|