diff options
author | agc <agc@pkgsrc.org> | 1999-09-27 08:27:46 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-09-27 08:27:46 +0000 |
commit | 16f19b6c4cebb89e9f8272a085ed7f10539bcc83 (patch) | |
tree | 376524c7d2aeeab6728dade8869c198d91685ca5 /audio/mpg123/patches | |
parent | 58bdd31d6824bf7fee018bae16c4563f002fb7b8 (diff) | |
download | pkgsrc-16f19b6c4cebb89e9f8272a085ed7f10539bcc83.tar.gz |
Make this package compile on Solaris.
Diffstat (limited to 'audio/mpg123/patches')
-rw-r--r-- | audio/mpg123/patches/patch-ac | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/audio/mpg123/patches/patch-ac b/audio/mpg123/patches/patch-ac index 1de9841f242..42803422ad5 100644 --- a/audio/mpg123/patches/patch-ac +++ b/audio/mpg123/patches/patch-ac @@ -1,7 +1,7 @@ -$NetBSD: patch-ac,v 1.2 1999/04/08 07:34:57 tron Exp $ +$NetBSD: patch-ac,v 1.3 1999/09/27 08:27:46 agc Exp $ ---- audio_sun.c.orig Mon Jan 11 07:54:46 1999 -+++ audio_sun.c Wed Apr 7 16:12:21 1999 +--- audio_sun.c.orig Thu Feb 4 13:22:34 1999 ++++ audio_sun.c Mon Sep 27 09:17:00 1999 @@ -17,6 +17,8 @@ #include "mpg123.h" @@ -11,14 +11,18 @@ $NetBSD: patch-ac,v 1.2 1999/04/08 07:34:57 tron Exp $ #ifndef SPARCLINUX #include <sys/filio.h> #ifdef SUNOS -@@ -78,6 +80,13 @@ +@@ -78,6 +80,17 @@ } #ifndef NETBSD + AUDIO_INITINFO(&ainfo); + if(ioctl(ai->fn, AUDIO_GETINFO, &ainfo) == -1) + return -1; ++#ifdef SOLARIS ++ outburst = MAXOUTBURST; ++#else + outburst = ainfo.blocksize; ++#endif + if(outburst > MAXOUTBURST) + outburst = MAXOUTBURST; + |