disable modem functionality on openbsd

This commit is contained in:
Michael Jerris 2014-02-21 15:48:45 -05:00
parent 19dbd07ff8
commit 2907a4824f
2 changed files with 6 additions and 2 deletions

View File

@ -801,8 +801,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_spandsp_init)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind!\n");
}
#if defined(MODEM_SUPPORT)
modem_global_init(module_interface, pool);
#endif
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "mod_spandsp loaded, using spandsp library version [%s]\n", SPANDSP_RELEASE_DATETIME_STRING);
@ -817,7 +818,9 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_spandsp_shutdown)
mod_spandsp_fax_shutdown();
mod_spandsp_dsp_shutdown();
#if defined(MODEM_SUPPORT)
modem_global_shutdown();
#endif
if (spandsp_globals.tones) {
switch_core_hash_destroy(&spandsp_globals.tones);

View File

@ -35,7 +35,7 @@
#undef HAVE_STDLIB_H
#include "switch_private.h"
#endif
#if defined(HAVE_OPENPTY) || defined(HAVE_DEV_PTMX) || defined(HAVE_POSIX_OPENPT) || WIN32
#if !defined(__OpenBSD__) && (defined(HAVE_OPENPTY) || defined(HAVE_DEV_PTMX) || defined(HAVE_POSIX_OPENPT) || WIN32)
#define MODEM_SUPPORT 1
#if !defined(HAVE_POSIX_OPENPT) && !defined(HAVE_DEV_PTMX) && !defined(WIN32)
#define USE_OPENPTY 1
@ -55,6 +55,7 @@
#include <termios.h>
#elif defined(__SunOS)
#include <termios.h>
#elif defined(__OpenBSD__)
#else
#include <pty.h>
#endif