From 15b346b0318246ca68111a19fb1e06db84846a83 Mon Sep 17 00:00:00 2001 From: asvitkine <> Date: Sun, 22 Aug 2010 18:56:11 +0000 Subject: [PATCH] use setenv in preference of putenv --- SheepShaver/src/Unix/main_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SheepShaver/src/Unix/main_unix.cpp b/SheepShaver/src/Unix/main_unix.cpp index d5224c1d..3c474cc1 100644 --- a/SheepShaver/src/Unix/main_unix.cpp +++ b/SheepShaver/src/Unix/main_unix.cpp @@ -398,10 +398,10 @@ int main(int argc, char **argv) #ifdef USE_SDL_VIDEO // Don't let SDL block the screensaver - putenv("SDL_VIDEO_ALLOW_SCREENSAVER=1"); + setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", TRUE); // Make SDL pass through command-clicks and option-clicks unaltered - putenv("SDL_HAS3BUTTONMOUSE=1"); + setenv("SDL_HAS3BUTTONMOUSE", "1", TRUE); #endif // Initialize variables