diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-08-01 22:39:41 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-08-01 22:39:41 +0000 |
commit | 0e158ace7d014e03a20eaf2fc654bc089fb8b623 (patch) | |
tree | 359d3660720a95d2a351c46ae78a8ca05fc2ca69 | |
parent | 8a4c0f2ee2735cede40205c9ce6bb188f7c9aff1 (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
-rw-r--r-- | dahdi_maint.c | 2 | ||||
-rw-r--r-- | dahdi_scan.c | 2 |
2 files changed, 4 insertions, 0 deletions
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/"); |