[Asterisk-cvs] asterisk/channels Makefile, 1.58, 1.59 chan_oss.c,
1.32, 1.33
markster at lists.digium.com
markster at lists.digium.com
Tue Aug 31 09:28:45 CDT 2004
- Previous message: [Asterisk-cvs] asterisk/apps app_sms.c,1.9,1.10
- Next message: [Asterisk-cvs] asterisk Makefile, 1.108, 1.109 aesopt.h, 1.6,
1.7 asterisk.c, 1.118, 1.119 md5.c, 1.7, 1.8 utils.c, 1.17, 1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv31447/channels
Modified Files:
Makefile chan_oss.c
Log Message:
Merge NetBSD and Courtesty tone with modifications (bug #2329)
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/Makefile,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- Makefile 30 Jul 2004 18:57:37 -0000 1.58
+++ Makefile 31 Aug 2004 13:32:11 -0000 1.59
@@ -46,15 +46,18 @@
H323LIB=-lh323_linux_x86_r
CHANH323LIB=-ldl
endif
-
-ifneq (${OSARCH},Darwin)
-CHANNEL_LIBS+=chan_oss.so
-endif
ifeq (${OSARCH},FreeBSD)
PTLIB=-lpt_FreeBSD_x86_r
H323LIB=-lh323_FreeBSD_x86_r
CHANH323LIB=-pthread
SOLINK+=-L/usr/local/lib
+endif
+ifeq (${OSARCH},NetBSD)
+PTLIB=-lpt_NetBSD_x86_r
+H323LIB=-lh323_NetBSD_x86_r
+SOLINK+=-L/usr/local/lib
+endif
+ifneq (${OSARCH},Darwin)
CHANNEL_LIBS+=chan_oss.so
endif
@@ -139,6 +142,10 @@
chan_oss.so: chan_oss.o
$(CC) $(SOLINK) -o $@ chan_oss.o -lossaudio
endif
+ifeq (${OSARCH},NetBSD)
+chan_oss.so: chan_oss.o
+ $(CC) $(SOLINK) -o $@ chan_oss.o -lossaudio
+endif
chan_iax2.so: chan_iax2.o iax2-parser.o iax2-provision.o
ifeq ($(USE_MYSQL_FRIENDS),1)
Index: chan_oss.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_oss.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- chan_oss.c 17 Aug 2004 23:53:15 -0000 1.32
+++ chan_oss.c 31 Aug 2004 13:32:11 -0000 1.33
@@ -47,7 +47,7 @@
#include "answer.h"
/* Which device to use */
-#ifdef __OpenBSD__
+#if defined( __OpenBSD__ ) || defined( __NetBSD__ )
#define DEV_DSP "/dev/audio"
#else
#define DEV_DSP "/dev/dsp"
@@ -375,7 +375,7 @@
return 0;
readmode = 0;
if (force || time_has_passed()) {
- ioctl(sounddev, SNDCTL_DSP_RESET);
+ ioctl(sounddev, SNDCTL_DSP_RESET, 0);
/* Keep the same fd reserved by closing the sound device and copying stdin at the same
time. */
/* dup2(0, sound); */
@@ -405,7 +405,7 @@
return 0;
readmode = -1;
if (force || time_has_passed()) {
- ioctl(sounddev, SNDCTL_DSP_RESET);
+ ioctl(sounddev, SNDCTL_DSP_RESET, 0);
close(sounddev);
/* dup2(0, sound); */
fd = open(DEV_DSP, O_RDONLY | O_NONBLOCK);
- Previous message: [Asterisk-cvs] asterisk/apps app_sms.c,1.9,1.10
- Next message: [Asterisk-cvs] asterisk Makefile, 1.108, 1.109 aesopt.h, 1.6,
1.7 asterisk.c, 1.118, 1.119 md5.c, 1.7, 1.8 utils.c, 1.17, 1.18
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list