tiny fix for irix: use putenv instead of setenv

This commit is contained in:
Stefan Gartner
2009-05-25 23:20:38 +00:00
parent ca39228fb7
commit 25c564c7c3

View File

@@ -544,9 +544,13 @@ int main(int argc, char **argv)
#else
_putenv_s("SDL_VIDEODRIVER", "dummy");
#endif
#else
#ifdef __sgi
putenv("SDL_VIDEODRIVER=dummy");
#else
setenv("SDL_VIDEODRIVER", "dummy", 1); /* initializing the video driver can cause crashes on some systems - Campbell */
#endif
#endif
#ifdef __linux__
/* On linux the default SDL driver dma often would not play
* use alsa if none is set */