diff options
Diffstat (limited to 'audio/mad/patches/patch-ad')
-rw-r--r-- | audio/mad/patches/patch-ad | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/mad/patches/patch-ad b/audio/mad/patches/patch-ad new file mode 100644 index 00000000000..352113f00ce --- /dev/null +++ b/audio/mad/patches/patch-ad @@ -0,0 +1,20 @@ +--- audio_sun.c.orig Sat Nov 3 01:49:07 2001 ++++ audio_sun.c Mon Jun 2 14:18:03 2003 +@@ -26,6 +26,7 @@ + # include "global.h" + + # include <unistd.h> ++# include <stdlib.h> + # include <fcntl.h> + # include <sys/ioctl.h> + # include <sys/audioio.h> +@@ -60,6 +61,9 @@ + static + int init(struct audio_init *init) + { ++ if (init->path == 0) ++ init->path = getenv("AUDIODEV"); ++ + if (init->path == 0) + init->path = AUDIO_DEVICE; + |