[MPlayer-dev-eng] [PATCH] afmt.h

Arpi arpi at thot.banki.hu
Sun Oct 27 00:54:42 CEST 2002


Hi,

> > cat > $TMPC << EOF
> > #include <soundcard.h>
> > int main(void) { return 0; }
> > EOF
> > _soundcard=no
> > cc_check && _soundcard=yes

> There's a line "#define ioctl _oss_ioctl" in soundcard.h so -lossaudio is
> needed, and that's not there when --disable-ossaudio is specified and we
> get a 
> 
> Undefined symbol `__oss_ioctl' referenced from text segment

hmm

but then the above test of soundcard.h should fail too!
hmm. no. it doesn't use ioctl so no macro resolution... right.
probably fixing teh check could solev the issue, either way:

int main(void) { return ioctl(); }

or

#ifdef ioctl
#error oss emulation
#endif

probably the former is better, in case if soundcard.h includes ioctl.h on
OSS supported platforms and ioctl is a macro.
also it should have optional (only if oss support is enabled) -lossaudio

or ok, just disable soundcard.h support ()#undef HAVE_SOUNDCARD_H)
if no oss, on *BSD platforms only


A'rpi / Astral & ESP-team


--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list