summaryrefslogtreecommitdiff
path: root/dahdi_scan.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-08-01 22:39:41 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-08-01 22:39:41 +0000
commit0e158ace7d014e03a20eaf2fc654bc089fb8b623 (patch)
tree359d3660720a95d2a351c46ae78a8ca05fc2ca69 /dahdi_scan.c
parent8a4c0f2ee2735cede40205c9ce6bb188f7c9aff1 (diff)
fix build of dahdi_scan and dahdi_maint with -linux 2.3
New functionality that was added in r8992 and r8993 uses new items defined only in dahdi-linux trunk (and eventually: 2.4). As in both cases it's a single place to check, we'll just ifdef it away. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9076 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'dahdi_scan.c')
-rw-r--r--dahdi_scan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dahdi_scan.c b/dahdi_scan.c
index 1006e6d..26ec781 100644
--- a/dahdi_scan.c
+++ b/dahdi_scan.c
@@ -90,10 +90,12 @@ int main(int argc, char *argv[])
strcat(alarms, "YEL/");
if (s.alarms & DAHDI_ALARM_RED) {
strcat(alarms, "RED/");
+#ifdef DAHDI_ALARM_LFA
if (s.alarms & DAHDI_ALARM_LFA)
strcat(alarms, "LFA/");
if (s.alarms & DAHDI_ALARM_LMFA)
strcat(alarms, "LMFA/");
+#endif /* ifdef DAHDI_ALARM_LFA */
}
if (s.alarms & DAHDI_ALARM_LOOPBACK)
strcat(alarms,"LB/");