SDL-1.1.2 compilation prob. on Irix

Hi there,
Compiling the audio part of SDL gives me the following error:

SDL_sysaudio.c: In function SDL_SYS_OpenAudio': SDL_sysaudio.c:90:AUDIO_STEREO’ undeclared (first use in this

Other than that the check for ‘semun’ in the threads part:

#if !defined(HAVE_SEMUN)
union semun {
int val;
struct semid_ds *buf;
ushort *array;

does not skip even though semun is apparently defined already. It works
of course if I remove the definition, but I wondered if there is
something else I can check for when compiling under Irix.

Yours sincerely,
/morten bek