[MPlayer-dev-eng] libao2 and Alsa-compile problem (with fix)

Felix Buenemann atmosfear at users.sourceforge.net
Sat Apr 27 10:23:41 CEST 2002


On Saturday 27 April 2002 04:41, Sven Hartge wrote:
> 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.
thx, fixed!

>
>
-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________



More information about the MPlayer-dev-eng mailing list