$NetBSD: patch-ac,v 1.3 2001/04/17 16:27:21 rh Exp $ --- src/audio/SDL_audio.c.orig Wed Mar 21 18:19:56 2001 +++ src/audio/SDL_audio.c @@ -40,7 +40,7 @@ /* Available audio drivers */ static AudioBootStrap *bootstrap[] = { -#if defined(unix) && \ +#if defined(__NetBSD__) || defined(unix) && \ !defined(linux) && !defined(__FreeBSD__) && !defined(__CYGWIN32__) \ && !defined(__bsdi__) &AUDIO_bootstrap, @@ -185,7 +185,7 @@ /* Select the proper audio driver */ audio = NULL; idx = 0; -#ifdef unix +#if defined(unix) || defined (__NetBSD__) if ( (driver_name == NULL) && (getenv("ESPEAKER") != NULL) ) { /* Ahem, we know that if ESPEAKER is set, user probably wants to use ESD, but don't start it if it's not already running.