From 5d335e1ded7eadc25417f984a235d1067e5a174e Mon Sep 17 00:00:00 2001 From: molivier Date: Wed, 31 Mar 2004 13:41:22 +0000 Subject: [PATCH] OpenBSD doesn't define _PATH_SOUND git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4068 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_bsd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/snd_bsd.c b/snd_bsd.c index 5735013a..ce4c26d5 100644 --- a/snd_bsd.c +++ b/snd_bsd.c @@ -45,12 +45,17 @@ static qbyte writebuf [SND_BUFF_SIZE]; qboolean SNDDMA_Init (void) { unsigned int i; - const char *snddev = _PATH_SOUND; + const char *snddev; audio_info_t info; memset ((void*)shm, 0, sizeof (*shm)); // Open the audio device +#ifdef _PATH_SOUND + snddev = _PATH_SOUND; +#else + snddev = "/dev/sound"; +#endif audio_fd = open (snddev, O_WRONLY | O_NDELAY | O_NONBLOCK); if (audio_fd < 0) { -- 2.39.2