alsa-lib: dlmisc: Add a fake dl lib head file when dl lib is not supported by the toolchain.
PATCH 1/1 alsa-lib: dlmisc: Add a fake dl lib head file when dl lib is not supported by the toolchain.
From: sonic <sonic@htpc.(none)>
The FLAT GNU toolchain doesn't include the dlfcn.h header file.
Signed-off-by Sonic Zhang <[email protected]>
--- 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
include/dlmisc.h new file +24 -0
@@ -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
modules/mixer/simple/sbasedl.c +4 -0
@@ -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"
src/mixer/simple_abst.c +4 -0
@@ -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"
Signature · 1 line
1.7.9.5
PING
Quoted 77 lines · Sonic Zhang
From: sonic <sonic@htpc.(none)>
The FLAT GNU toolchain doesn't include the
dlfcn.hheader file.Signed-off-by Sonic Zhang <[email protected]>--- 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.hinclude/dlmisc.h new file +24
-0@@ -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 modules/mixer/simple/sbasedl.c +4
-0@@ -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" src/mixer/simple_abst.c +4
-1@@ -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