tiny fix for irix: use putenv instead of setenv
authorStefan Gartner <stefang@aon.at>
Mon, 25 May 2009 23:20:38 +0000 (23:20 +0000)
committerStefan Gartner <stefang@aon.at>
Mon, 25 May 2009 23:20:38 +0000 (23:20 +0000)
source/creator/creator.c

index e04a5b1db3d8781b8a91d07456d54a4773d4babd..f8bf728814319905800c0ac8b70e89529747d211 100644 (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 */