summaryrefslogtreecommitdiff
path: root/audio/xmix/patches
diff options
context:
space:
mode:
authorhans <hans>2012-01-12 21:13:17 +0000
committerhans <hans>2012-01-12 21:13:17 +0000
commit56dccae1f7e81ab5c7aed22668e06d0bbf05c71d (patch)
tree9799f25fc31898eb0981a1debc0160b62f383cfc /audio/xmix/patches
parent3b6ba5ca0dc4d499b13402c23361b13d9c0ae27f (diff)
downloadpkgsrc-56dccae1f7e81ab5c7aed22668e06d0bbf05c71d.tar.gz
Fix build on SunOS.
Diffstat (limited to 'audio/xmix/patches')
-rw-r--r--audio/xmix/patches/patch-ab10
1 files changed, 6 insertions, 4 deletions
diff --git a/audio/xmix/patches/patch-ab b/audio/xmix/patches/patch-ab
index 801288fbc7f..9eaa0d8ad5d 100644
--- a/audio/xmix/patches/patch-ab
+++ b/audio/xmix/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.5 2011/09/04 22:17:41 dholland Exp $
+$NetBSD: patch-ab,v 1.6 2012/01/12 21:13:17 hans Exp $
- support more OSes (is the first hunk actually correct?)
- fix void main
@@ -6,7 +6,7 @@ $NetBSD: patch-ab,v 1.5 2011/09/04 22:17:41 dholland Exp $
--- xmix.c.orig 2011-09-04 22:12:45.000000000 +0000
+++ xmix.c
-@@ -77,7 +77,12 @@ to Rick! I'll call this version V2.1
+@@ -77,7 +77,14 @@ to Rick! I'll call this version V2.1
#include "square_empty.bit"
#include "square_with_x.bit"
@@ -14,13 +14,15 @@ $NetBSD: patch-ab,v 1.5 2011/09/04 22:17:41 dholland Exp $
+#ifdef __NetBSD__
+#include <sys/ioctl.h>
+#include <soundcard.h>
++#elif defined(__sun)
++#include <sys/soundcard.h>
+#else
+#include <machine/soundcard.h>
+#endif
#define SOUND_FULL_SCALE 100.0
#define MAX_SOUND_VOL 95
-@@ -450,7 +455,7 @@ static void set_supported(VolumeControl
+@@ -450,7 +457,7 @@ static void set_supported(VolumeControl
}
@@ -29,7 +31,7 @@ $NetBSD: patch-ab,v 1.5 2011/09/04 22:17:41 dholland Exp $
{
XtAppContext app_context;
int scroll_sep, longway;
-@@ -742,7 +747,7 @@ void main (int argc, char **argv)
+@@ -742,7 +749,7 @@ void main (int argc, char **argv)
mic.locked = 0;
reclvl.locked = 0;