summaryrefslogtreecommitdiff
path: root/comms/asterisk16/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'comms/asterisk16/patches/patch-ak')
-rw-r--r--comms/asterisk16/patches/patch-ak22
1 files changed, 20 insertions, 2 deletions
diff --git a/comms/asterisk16/patches/patch-ak b/comms/asterisk16/patches/patch-ak
index d2ac3549c23..84223e7e7e2 100644
--- a/comms/asterisk16/patches/patch-ak
+++ b/comms/asterisk16/patches/patch-ak
@@ -1,4 +1,4 @@
-$NetBSD: patch-ak,v 1.1.1.1 2009/06/12 09:04:56 jnemeth Exp $
+$NetBSD: patch-ak,v 1.2 2012/02/16 16:30:04 hans Exp $
--- channels/chan_oss.c.orig 2008-11-02 16:39:04.000000000 -0800
+++ channels/chan_oss.c
@@ -7,7 +7,25 @@ $NetBSD: patch-ak,v 1.1.1.1 2009/06/12 09:04:56 jnemeth Exp $
#ifdef __linux
#include <linux/soundcard.h>
-#elif defined(__FreeBSD__) || defined(__CYGWIN__)
-+#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__DragonFly__)
++#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__DragonFly__) || defined(__sun)
#include <sys/soundcard.h>
#else
#include <soundcard.h>
+@@ -248,7 +248,7 @@ struct chan_oss_pvt {
+ char *name;
+ int total_blocks; /*!< total blocks in the output device */
+ int sounddev;
+- enum { M_UNSET, M_FULL, M_READ, M_WRITE } duplex;
++ enum { M_UNSET, M_FULL, M_READ_foo, M_WRITE } duplex;
+ int autoanswer; /*!< Boolean: whether to answer the immediately upon calling */
+ int autohangup; /*!< Boolean: whether to hangup the call when the remote end hangs up */
+ int hookstate; /*!< Boolean: 1 if offhook; 0 if onhook */
+@@ -515,7 +515,7 @@ static int setformat(struct chan_oss_pvt
+ break;
+
+ case O_RDONLY:
+- o->duplex = M_READ;
++ o->duplex = M_READ_foo;
+ break;
+ }
+