diff options
author | Stefan Gartner <stefang@aon.at> | 2009-05-26 03:20:38 +0400 |
---|---|---|
committer | Stefan Gartner <stefang@aon.at> | 2009-05-26 03:20:38 +0400 |
commit | 25c564c7c33701650dc9457969da0e596b787fa4 (patch) | |
tree | 80a1e5f72a45b01ca5fca052fa77367e922ea6d1 /source/creator/creator.c | |
parent | ca39228fb70a2c1b45c504ef344a5ac434f8989c (diff) |
tiny fix for irix: use putenv instead of setenv
Diffstat (limited to 'source/creator/creator.c')
-rw-r--r-- | source/creator/creator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index e04a5b1db3d..f8bf7288143 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -545,8 +545,12 @@ int main(int argc, char **argv) _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 */ |