diff options
Diffstat (limited to 'audio/libao/patches/patch-aa')
-rw-r--r-- | audio/libao/patches/patch-aa | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/audio/libao/patches/patch-aa b/audio/libao/patches/patch-aa index 0af572d6576..1034a15d3dc 100644 --- a/audio/libao/patches/patch-aa +++ b/audio/libao/patches/patch-aa @@ -1,15 +1,31 @@ -$NetBSD: patch-aa,v 1.6 2002/01/02 12:23:49 lukem Exp $ +$NetBSD: patch-aa,v 1.7 2002/10/04 08:12:47 jlam Exp $ ---- src/plugins/oss/ao_oss.c.orig Tue Oct 16 10:13:47 2001 +--- src/plugins/oss/ao_oss.c.orig Wed Apr 10 14:53:56 2002 +++ src/plugins/oss/ao_oss.c -@@ -82,8 +82,8 @@ +@@ -80,22 +80,22 @@ int _open_default_oss_device (char **dev char *err = NULL; char *dev = NULL; - /* default: first try the devfs path */ - *dev_path = strdup("/dev/sound/dsp"); -+ /* default: first try the NetBSD path */ -+ *dev_path = strdup("/dev/sound"); ++ /* default: first try the traditional path */ ++ *dev_path = strdup("/dev/dsp"); #ifdef BROKEN_OSS fd = open(*dev_path, O_WRONLY | O_NONBLOCK); #else + fd = open(*dev_path, O_WRONLY); + #endif /* BROKEN_OSS */ + +- /* then try the original dsp path */ ++ /* then try the NetBSD path */ + if(fd < 0) + { + /* no? then try the traditional path */ + err = strdup(strerror(errno)); + dev = strdup(*dev_path); + free(*dev_path); +- *dev_path = strdup("/dev/dsp"); ++ *dev_path = strdup("/dev/sound"); + #ifdef BROKEN_OSS + fd = open(*dev_path, O_WRONLY | O_NONBLOCK); + #else |