diff options
Diffstat (limited to 'audio/sox/patches/patch-ab')
-rw-r--r-- | audio/sox/patches/patch-ab | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/audio/sox/patches/patch-ab b/audio/sox/patches/patch-ab index 2cf331986bc..558568b60bf 100644 --- a/audio/sox/patches/patch-ab +++ b/audio/sox/patches/patch-ab @@ -1,26 +1,26 @@ -$NetBSD: patch-ab,v 1.5 1999/10/26 01:31:07 hubertf Exp $ +$NetBSD: patch-ab,v 1.6 2002/07/12 19:30:51 mycroft Exp $ ---- play.orig Tue Oct 26 03:16:27 1999 -+++ play Tue Oct 26 03:19:33 1999 -@@ -14,7 +14,7 @@ - - # Set up path so that it can find Sox if user's path doesn't already - # include it. --PATH=$PATH:/usr/local/bin -+PATH=$PATH:@PREFIX@/bin - program_name=`basename $0` - program_version="2.0" - -@@ -171,6 +171,12 @@ - esac - if [ -z "$device" ]; then - device="/dev/audio" -+ fi -+ ;; -+ NetBSD) -+ arch_defines="-t sunau" -+ if [ -z "$device" ]; then -+ device="/dev/audio" - fi - ;; - Linux|FreeBSD) +--- sunaudio.c.orig Sat Dec 1 02:17:18 2001 ++++ sunaudio.c Fri Jul 12 19:18:31 2002 +@@ -31,7 +31,9 @@ + #ifdef HAVE_ERRNO_H + #include <errno.h> + #endif ++#ifndef __NetBSD__ + #include <stropts.h> ++#endif + #include <malloc.h> + #include <unistd.h> + #include <stdlib.h> +@@ -170,7 +172,11 @@ + return(ST_EOF); + } + /* Flush any data in the buffers - its probably in the wrong format */ ++#ifdef __NetBSD__ ++ ioctl(fileno(ft->fp), AUDIO_FLUSH); ++#else + ioctl(fileno(ft->fp), I_FLUSH, FLUSHR); ++#endif + /* Change to non-buffered I/O*/ + setvbuf(ft->fp, NULL, _IONBF, sizeof(char) * ft->file.size); + sigintreg(ft); /* Prepare to catch SIGINT */ |