diff options
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_dahdi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 60b6d2d9f..5bd2bd9f7 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -3668,7 +3668,7 @@ static int get_alarms(struct dahdi_pvt *p) { int res; struct dahdi_spaninfo zi; -#if defined(HAVE_DAHDI) || defined(HAVE_ZAPTEL_CHANALARMS) +#if !defined(HAVE_ZAPTEL) || defined(HAVE_ZAPTEL_CHANALARMS) /* * The conditional compilation is needed only in asterisk-1.4 for * backward compatibility with old zaptel drivers that don't have @@ -3687,7 +3687,7 @@ static int get_alarms(struct dahdi_pvt *p) } if (zi.alarms != DAHDI_ALARM_NONE) return zi.alarms; -#if defined(HAVE_DAHDI) || defined(HAVE_ZAPTEL_CHANALARMS) +#if !defined(HAVE_ZAPTEL) || defined(HAVE_ZAPTEL_CHANALARMS) /* No alarms on the span. Check for channel alarms. */ if ((res = ioctl(p->subs[SUB_REAL].dfd, DAHDI_GET_PARAMS, ¶ms)) >= 0) return params.chan_alarms; |