From 29f496ef12247a2401d02428fa533020b588f5b6 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Mon, 24 Apr 2006 17:11:45 +0000 Subject: Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_musiconhold.c | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'res/res_musiconhold.c') diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 30a363574..061934335 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -1,7 +1,7 @@ /* * Asterisk -- An open source telephony toolkit. * - * Copyright (C) 1999 - 2005, Digium, Inc. + * Copyright (C) 1999 - 2006, Digium, Inc. * * Mark Spencer * @@ -25,6 +25,10 @@ * \author Mark Spencer */ +/*** MODULEINFO + win32 + ***/ + #include #include #include @@ -37,13 +41,6 @@ #include #include #include -#ifdef ZAPATA_MOH -#ifdef __linux__ -#include -#else -#include -#endif /* __linux__ */ -#endif #include #include @@ -51,6 +48,14 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +#ifdef HAVE_ZAPTEL +#ifdef __linux__ +#include +#else +#include +#endif /* __linux__ */ +#endif + #include "asterisk/lock.h" #include "asterisk/file.h" #include "asterisk/logger.h" @@ -796,7 +801,7 @@ static int moh_scan_files(struct mohclass *class) { static int moh_register(struct mohclass *moh, int reload) { -#ifdef ZAPATA_MOH +#ifdef HAVE_ZAPTEL int x; #endif ast_mutex_lock(&moh_lock); @@ -834,7 +839,7 @@ static int moh_register(struct mohclass *moh, int reload) ast_set_flag(moh, MOH_QUIET); moh->srcfd = -1; -#ifdef ZAPATA_MOH +#ifdef HAVE_ZAPTEL /* Open /dev/zap/pseudo for timing... Is there a better, yet reliable way to do this? */ moh->pseudofd = open("/dev/zap/pseudo", O_RDONLY); @@ -1228,3 +1233,4 @@ static const char *key(void) } STD_MOD(MOD_0 | NO_USECOUNT | NO_UNLOAD, reload, NULL, NULL); + -- cgit v1.2.3