From 0e158ace7d014e03a20eaf2fc654bc089fb8b623 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 1 Aug 2010 22:39:41 +0000 Subject: 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 --- dahdi_maint.c | 2 ++ dahdi_scan.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dahdi_maint.c b/dahdi_maint.c index ab584fc..f9c9083 100644 --- a/dahdi_maint.c +++ b/dahdi_maint.c @@ -197,9 +197,11 @@ int main(int argc, char *argv[]) } else if (!strcasecmp(iarg, "bipolar")) { m.command = DAHDI_MAINT_BIPOLAR_DEFECT; printf("Inserting a single bipolar defect\n"); +#ifdef DAHDI_MAINT_ALARM_SIM } else if (!strcasecmp(iarg, "sim")) { m.command = DAHDI_MAINT_ALARM_SIM; printf("Incrementing alarm simulator\n"); +#endif } else { display_help(argv[0], 1); } 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/"); -- cgit v1.2.3