diff options
Diffstat (limited to 'audio/esound/patches/patch-ab')
-rw-r--r-- | audio/esound/patches/patch-ab | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/audio/esound/patches/patch-ab b/audio/esound/patches/patch-ab index fdba4b3b609..baa19a68635 100644 --- a/audio/esound/patches/patch-ab +++ b/audio/esound/patches/patch-ab @@ -1,8 +1,16 @@ -$NetBSD: patch-ab,v 1.5 2002/10/03 12:21:29 jlam Exp $ +$NetBSD: patch-ab,v 1.6 2008/07/29 21:58:13 wiz Exp $ ---- audio_oss.c.orig Tue Jul 18 18:33:41 2000 +--- audio_oss.c.orig 2008-07-15 16:00:03.000000000 +0000 +++ audio_oss.c -@@ -19,7 +19,7 @@ +@@ -1,5 +1,7 @@ + #include "config.h" + ++#include <errno.h> ++ + #ifdef HAVE_MACHINE_SOUNDCARD_H + # include <machine/soundcard.h> + #else +@@ -19,7 +21,7 @@ #define ARCH_esd_audio_devices const char *esd_audio_devices() { @@ -11,7 +19,7 @@ $NetBSD: patch-ab,v 1.5 2002/10/03 12:21:29 jlam Exp $ } -@@ -38,7 +38,7 @@ +@@ -38,7 +40,7 @@ int esd_audio_open() mode |= O_NONBLOCK; /* open the sound device */ @@ -19,4 +27,4 @@ $NetBSD: patch-ab,v 1.5 2002/10/03 12:21:29 jlam Exp $ + device = esd_audio_device ? esd_audio_device : DEV_DSP; if ((afd = open(device, mode, 0)) == -1) { /* Opening device failed */ - perror(device); + if (errno != ENOENT) |