[MPlayer-dev-eng] libao2 and Alsa-compile problem (with fix)
Sven Hartge
hartge at ds9.argh.org
Sat Apr 27 04:41:08 CEST 2002
Hi.
In the latest CVS, the ao_alsa9.c looks like this:
,----
| [...]
|
| #if HAVE_SYS_ASOUNDLIB_H
| #include <sys/asoundlib.h>
| #elif HAVE_ALSA_ASOUNDLIB_H
| #include <alsa/asoundlib.h>
| #else
| #error "asoundlib.h is not in sys/ or alsa/ - please bugreport"
| #endif
|
| #include "../config.h"
|
| [...]
`----
Since HAVE_ALSA_ASOUNDLIB_H or HAVE_SYS_ASOUNDLIB_H is defined in
config.h, it is needed to include it _before_ the #ifs, or the
compiliation will fail.
So just moving #include "../config.h" above the ALSA-#ifs will solve
this problem.
S°
--
Fachbegriffe der Informatik - Einfach erklärt
190: Cisco
Protokolhure. (unbekannt)
More information about the MPlayer-dev-eng
mailing list