diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c index 8d70af73b2..19cba04d72 100644 --- a/libao2/ao_sdl.c +++ b/libao2/ao_sdl.c @@ -95,8 +95,8 @@ static int read_buffer(unsigned char* data,int len){ // end ring buffer stuff -#if defined(HPUX) || defined(sun) && defined(__svr4__) -/* setenv is missing on solaris and HPUX */ +#if defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__)) +/* setenv is missing on solaris, IRIX and HPUX */ static void setenv(const char *name, const char *val, int _xx) { int len = strlen(name) + strlen(val) + 2; diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index f65087bafa..41759f777d 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -141,8 +141,8 @@ LIBVO_EXTERN(sdl) #include //#include -#if defined(HPUX) || defined(sun) && defined(__svr4__) -/* setenv is missing on solaris and HPUX */ +#if defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__)) +/* setenv is missing on solaris, IRIX and HPUX */ static void setenv(const char *name, const char *val, int _xx) { int len = strlen(name) + strlen(val) + 2;