diff options
Diffstat (limited to 'audio/pd/patches/patch-src_s__audio__oss.c')
-rw-r--r-- | audio/pd/patches/patch-src_s__audio__oss.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/audio/pd/patches/patch-src_s__audio__oss.c b/audio/pd/patches/patch-src_s__audio__oss.c index b204d93a6be..f9a919e1624 100644 --- a/audio/pd/patches/patch-src_s__audio__oss.c +++ b/audio/pd/patches/patch-src_s__audio__oss.c @@ -1,4 +1,4 @@ -$NetBSD: patch-src_s__audio__oss.c,v 1.2 2011/10/05 20:02:48 wiz Exp $ +$NetBSD: patch-src_s__audio__oss.c,v 1.3 2012/02/15 22:36:39 hans Exp $ Use proper soundcard.h include on NetBSD and add missing argument to ioctl(). @@ -6,16 +6,26 @@ https://sourceforge.net/tracker/?func=detail&aid=3411732&group_id=55736&atid=478 --- src/s_audio_oss.c.orig 2011-03-07 01:33:39.000000000 +0000 +++ src/s_audio_oss.c -@@ -5,7 +5,7 @@ +@@ -5,12 +5,17 @@ /* this file inputs and outputs audio using the OSS API available on linux. */ -#if defined(__FreeBSD_kernel__) -+#if defined(__FreeBSD_kernel__) || defined(__NetBSD__) ++#if defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__sun) # include <sys/soundcard.h> #else # include <linux/soundcard.h> -@@ -120,7 +120,7 @@ typedef struct _multidev { + #endif + ++#ifdef __sun ++#define SOUND_PCM_GETOSPACE SNDCTL_DSP_GETOSPACE ++#define SOUND_PCM_GETISPACE SNDCTL_DSP_GETISPACE ++#endif ++ + #include "m_pd.h" + #include "s_stuff.h" + #include <errno.h> +@@ -120,7 +125,7 @@ typedef struct _multidev { int oss_reset(int fd) { int err; |