* [PATCH] alsa-lib: dlmisc: Add a fake dl lib head file when dl lib is not supported by the toolchain.
@ 2013-11-25 7:36 ` Sonic Zhang
0 siblings, 0 replies; 4+ messages in thread
From: Sonic Zhang @ 2013-11-25 7:36 UTC (permalink / raw)
To: Jaroslav Kysela, alsa-devel; +Cc: u-boot, Sonic Zhang, Gustavo Zacarias
From: sonic <sonic@htpc.(none)>
The FLAT GNU toolchain doesn't include the dlfcn.h header file.
Signed-off-by: Sonic Zhang <sonic.adi@gmail.com>
---
include/dlmisc.h | 24 ++++++++++++++++++++++++
modules/mixer/simple/sbasedl.c | 4 ++++
src/mixer/simple_abst.c | 4 ++++
3 files changed, 32 insertions(+)
create mode 100644 include/dlmisc.h
diff --git a/include/dlmisc.h b/include/dlmisc.h
new file mode 100644
index 0000000..3be8d43
--- /dev/null
+++ b/include/dlmisc.h
@@ -0,0 +1,24 @@
+/*
+ * This library is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+#ifndef __ALSA_DLMISC_H
+#define __ALSA_DLMISC_H
+
+#define RTLD_NOW 0x00002
+#define RTLD_GLOBAL 0x00100
+
+#endif
diff --git a/modules/mixer/simple/sbasedl.c b/modules/mixer/simple/sbasedl.c
index 494802f..511bebf 100644
--- a/modules/mixer/simple/sbasedl.c
+++ b/modules/mixer/simple/sbasedl.c
@@ -27,7 +27,11 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <math.h>
+#ifdef HAVE_LIBDL
#include <dlfcn.h>
+#else
+#include <dlmisc.h>
+#endif
#include "config.h"
#include "asoundlib.h"
#include "mixer_abst.h"
diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c
index 9e9aaf5..dd951fe 100644
--- a/src/mixer/simple_abst.c
+++ b/src/mixer/simple_abst.c
@@ -34,7 +34,11 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <math.h>
+#ifdef HAVE_LIBDL
#include <dlfcn.h>
+#else
+#include <dlmisc.h>
+#endif
#include "config.h"
#include "asoundlib.h"
#include "mixer_simple.h"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] alsa-lib: dlmisc: Add a fake dl lib head file when dl lib is not supported by the toolchain.
@ 2013-11-25 7:36 ` Sonic Zhang
0 siblings, 0 replies; 4+ messages in thread
From: Sonic Zhang @ 2013-11-25 7:36 UTC (permalink / raw)
To: u-boot
From: sonic <sonic@htpc.(none)>
The FLAT GNU toolchain doesn't include the dlfcn.h header file.
Signed-off-by: Sonic Zhang <sonic.adi@gmail.com>
---
include/dlmisc.h | 24 ++++++++++++++++++++++++
modules/mixer/simple/sbasedl.c | 4 ++++
src/mixer/simple_abst.c | 4 ++++
3 files changed, 32 insertions(+)
create mode 100644 include/dlmisc.h
diff --git a/include/dlmisc.h b/include/dlmisc.h
new file mode 100644
index 0000000..3be8d43
--- /dev/null
+++ b/include/dlmisc.h
@@ -0,0 +1,24 @@
+/*
+ * This library is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+#ifndef __ALSA_DLMISC_H
+#define __ALSA_DLMISC_H
+
+#define RTLD_NOW 0x00002
+#define RTLD_GLOBAL 0x00100
+
+#endif
diff --git a/modules/mixer/simple/sbasedl.c b/modules/mixer/simple/sbasedl.c
index 494802f..511bebf 100644
--- a/modules/mixer/simple/sbasedl.c
+++ b/modules/mixer/simple/sbasedl.c
@@ -27,7 +27,11 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <math.h>
+#ifdef HAVE_LIBDL
#include <dlfcn.h>
+#else
+#include <dlmisc.h>
+#endif
#include "config.h"
#include "asoundlib.h"
#include "mixer_abst.h"
diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c
index 9e9aaf5..dd951fe 100644
--- a/src/mixer/simple_abst.c
+++ b/src/mixer/simple_abst.c
@@ -34,7 +34,11 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <math.h>
+#ifdef HAVE_LIBDL
#include <dlfcn.h>
+#else
+#include <dlmisc.h>
+#endif
#include "config.h"
#include "asoundlib.h"
#include "mixer_simple.h"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] alsa-lib: dlmisc: Add a fake dl lib head file when dl lib is not supported by the toolchain.
2013-11-25 7:36 ` [U-Boot] " Sonic Zhang
@ 2013-12-02 2:08 ` Sonic Zhang
-1 siblings, 0 replies; 4+ messages in thread
From: Sonic Zhang @ 2013-12-02 2:08 UTC (permalink / raw)
To: Jaroslav Kysela, alsa-devel; +Cc: U-Boot, Sonic Zhang, Gustavo Zacarias
PING
On Mon, Nov 25, 2013 at 3:36 PM, Sonic Zhang <sonic.adi@gmail.com> wrote:
> From: sonic <sonic@htpc.(none)>
>
> The FLAT GNU toolchain doesn't include the dlfcn.h header file.
>
> Signed-off-by: Sonic Zhang <sonic.adi@gmail.com>
> ---
> include/dlmisc.h | 24 ++++++++++++++++++++++++
> modules/mixer/simple/sbasedl.c | 4 ++++
> src/mixer/simple_abst.c | 4 ++++
> 3 files changed, 32 insertions(+)
> create mode 100644 include/dlmisc.h
>
> diff --git a/include/dlmisc.h b/include/dlmisc.h
> new file mode 100644
> index 0000000..3be8d43
> --- /dev/null
> +++ b/include/dlmisc.h
> @@ -0,0 +1,24 @@
> +/*
> + * This library is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU Lesser General Public License as
> + * published by the Free Software Foundation; either version 2.1 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with this library; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
> + *
> + */
> +
> +#ifndef __ALSA_DLMISC_H
> +#define __ALSA_DLMISC_H
> +
> +#define RTLD_NOW 0x00002
> +#define RTLD_GLOBAL 0x00100
> +
> +#endif
> diff --git a/modules/mixer/simple/sbasedl.c b/modules/mixer/simple/sbasedl.c
> index 494802f..511bebf 100644
> --- a/modules/mixer/simple/sbasedl.c
> +++ b/modules/mixer/simple/sbasedl.c
> @@ -27,7 +27,11 @@
> #include <fcntl.h>
> #include <sys/ioctl.h>
> #include <math.h>
> +#ifdef HAVE_LIBDL
> #include <dlfcn.h>
> +#else
> +#include <dlmisc.h>
> +#endif
> #include "config.h"
> #include "asoundlib.h"
> #include "mixer_abst.h"
> diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c
> index 9e9aaf5..dd951fe 100644
> --- a/src/mixer/simple_abst.c
> +++ b/src/mixer/simple_abst.c
> @@ -34,7 +34,11 @@
> #include <fcntl.h>
> #include <sys/ioctl.h>
> #include <math.h>
> +#ifdef HAVE_LIBDL
> #include <dlfcn.h>
> +#else
> +#include <dlmisc.h>
> +#endif
> #include "config.h"
> #include "asoundlib.h"
> #include "mixer_simple.h"
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] alsa-lib: dlmisc: Add a fake dl lib head file when dl lib is not supported by the toolchain.
@ 2013-12-02 2:08 ` Sonic Zhang
0 siblings, 0 replies; 4+ messages in thread
From: Sonic Zhang @ 2013-12-02 2:08 UTC (permalink / raw)
To: u-boot
PING
On Mon, Nov 25, 2013 at 3:36 PM, Sonic Zhang <sonic.adi@gmail.com> wrote:
> From: sonic <sonic@htpc.(none)>
>
> The FLAT GNU toolchain doesn't include the dlfcn.h header file.
>
> Signed-off-by: Sonic Zhang <sonic.adi@gmail.com>
> ---
> include/dlmisc.h | 24 ++++++++++++++++++++++++
> modules/mixer/simple/sbasedl.c | 4 ++++
> src/mixer/simple_abst.c | 4 ++++
> 3 files changed, 32 insertions(+)
> create mode 100644 include/dlmisc.h
>
> diff --git a/include/dlmisc.h b/include/dlmisc.h
> new file mode 100644
> index 0000000..3be8d43
> --- /dev/null
> +++ b/include/dlmisc.h
> @@ -0,0 +1,24 @@
> +/*
> + * This library is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU Lesser General Public License as
> + * published by the Free Software Foundation; either version 2.1 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with this library; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
> + *
> + */
> +
> +#ifndef __ALSA_DLMISC_H
> +#define __ALSA_DLMISC_H
> +
> +#define RTLD_NOW 0x00002
> +#define RTLD_GLOBAL 0x00100
> +
> +#endif
> diff --git a/modules/mixer/simple/sbasedl.c b/modules/mixer/simple/sbasedl.c
> index 494802f..511bebf 100644
> --- a/modules/mixer/simple/sbasedl.c
> +++ b/modules/mixer/simple/sbasedl.c
> @@ -27,7 +27,11 @@
> #include <fcntl.h>
> #include <sys/ioctl.h>
> #include <math.h>
> +#ifdef HAVE_LIBDL
> #include <dlfcn.h>
> +#else
> +#include <dlmisc.h>
> +#endif
> #include "config.h"
> #include "asoundlib.h"
> #include "mixer_abst.h"
> diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c
> index 9e9aaf5..dd951fe 100644
> --- a/src/mixer/simple_abst.c
> +++ b/src/mixer/simple_abst.c
> @@ -34,7 +34,11 @@
> #include <fcntl.h>
> #include <sys/ioctl.h>
> #include <math.h>
> +#ifdef HAVE_LIBDL
> #include <dlfcn.h>
> +#else
> +#include <dlmisc.h>
> +#endif
> #include "config.h"
> #include "asoundlib.h"
> #include "mixer_simple.h"
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-02 2:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-25 7:36 [PATCH] alsa-lib: dlmisc: Add a fake dl lib head file when dl lib is not supported by the toolchain Sonic Zhang
2013-11-25 7:36 ` [U-Boot] " Sonic Zhang
2013-12-02 2:08 ` Sonic Zhang
2013-12-02 2:08 ` [U-Boot] " Sonic Zhang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.