src/audio/SDL_audio.c
changeset 1341 d02b552e5304
parent 1336 3692456e7b0f
child 1358 c71e05b4dc2e
--- a/src/audio/SDL_audio.c	Tue Feb 07 11:18:21 2006 +0000
+++ b/src/audio/SDL_audio.c	Tue Feb 07 12:11:33 2006 +0000
@@ -306,18 +306,20 @@
 		 */
 		for ( i=0; bootstrap[i]; ++i ) {
 			if ( SDL_strcmp(bootstrap[i]->name, "esd") == 0 ) {
+#ifdef HAVE_PUTENV
 				const char *esd_no_spawn;
 
 				/* Don't start ESD if it's not running */
-				esd_no_spawn = SDL_getenv("ESD_NO_SPAWN");
+				esd_no_spawn = getenv("ESD_NO_SPAWN");
 				if ( esd_no_spawn == NULL ) {
 					putenv("ESD_NO_SPAWN=1");
 				}
+#endif
 				if ( bootstrap[i]->available() ) {
 					audio = bootstrap[i]->create(0);
 					break;
 				}
-#ifdef linux	/* No unsetenv() on most platforms */
+#ifdef HAVE_UNSETENV
 				if ( esd_no_spawn == NULL ) {
 					unsetenv("ESD_NO_SPAWN");
 				}