mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-02 01:40:08 -05:00
mixer: Don't build simple_abst when no libdl is available
Check BUILD_MODULES conditional not to compile simple_abst.c. Also return -ENXIO to caller statically in that case. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8d14698931
commit
1b428e7719
2 changed files with 15 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
EXTRA_LTLIBRARIES=libmixer.la
|
EXTRA_LTLIBRARIES=libmixer.la
|
||||||
|
|
||||||
libmixer_la_SOURCES = bag.c mixer.c simple.c simple_none.c simple_abst.c
|
libmixer_la_SOURCES = bag.c mixer.c simple.c simple_none.c
|
||||||
|
|
||||||
|
if BUILD_MODULES
|
||||||
|
libmixer_la_SOURCES += simple_abst.c
|
||||||
|
endif
|
||||||
|
|
||||||
noinst_HEADERS = mixer_local.h mixer_simple.h
|
noinst_HEADERS = mixer_local.h mixer_simple.h
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,4 +28,14 @@
|
||||||
snd1_mixer_simple_basic_register
|
snd1_mixer_simple_basic_register
|
||||||
|
|
||||||
int snd_mixer_simple_none_register(snd_mixer_t *mixer, struct snd_mixer_selem_regopt *options, snd_mixer_class_t **classp);
|
int snd_mixer_simple_none_register(snd_mixer_t *mixer, struct snd_mixer_selem_regopt *options, snd_mixer_class_t **classp);
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBDL
|
||||||
int snd_mixer_simple_basic_register(snd_mixer_t *mixer, struct snd_mixer_selem_regopt *options, snd_mixer_class_t **classp);
|
int snd_mixer_simple_basic_register(snd_mixer_t *mixer, struct snd_mixer_selem_regopt *options, snd_mixer_class_t **classp);
|
||||||
|
#else
|
||||||
|
static inline int snd_mixer_simple_basic_register(snd_mixer_t *mixer,
|
||||||
|
struct snd_mixer_selem_regopt *options,
|
||||||
|
snd_mixer_class_t **classp)
|
||||||
|
{
|
||||||
|
return -ENXIO;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue