diff options
author | Doug Bailey <dbailey@digium.com> | 2008-02-22 23:56:55 +0000 |
---|---|---|
committer | Doug Bailey <dbailey@digium.com> | 2008-02-22 23:56:55 +0000 |
commit | 552b782fc2d77c1dd6568c7efd3599f95ecc81fd (patch) | |
tree | 5bcfd68ee1c6ce3d7f416c95b6593c0f2cc3630c /channels | |
parent | f92a3e119e4152df15e9fc65f097262571227439 (diff) |
Add protection to chan_zap build when NEONMWI events are not defined
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_zap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 360f5ade1..61552421c 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -7313,8 +7313,10 @@ static void *mwi_thread(void *data) res = zt_get_event(mtd->pvt->subs[SUB_REAL].zfd); switch (res) { +#ifdef HAVE_ZAPTEL_NEONMWI case ZT_EVENT_NEONMWI_ACTIVE: case ZT_EVENT_NEONMWI_INACTIVE: +#endif case ZT_EVENT_NONE: case ZT_EVENT_BITSCHANGED: break; @@ -7639,6 +7641,7 @@ static int handle_init_event(struct zt_pvt *i, int event) i->channel); zap_destroy_channel_bynum(i->channel); break; +#ifdef HAVE_ZAPTEL_NEONMWI case ZT_EVENT_NEONMWI_ACTIVE: if (i->mwimonitor_neon) { notify_message(i->mailbox, 1); @@ -7651,6 +7654,7 @@ static int handle_init_event(struct zt_pvt *i, int event) ast_log(LOG_NOTICE, "NEON MWI cleared for channel %d, mailbox %s\n", i->channel, i->mailbox); } break; +#endif } return 0; } |