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 ++ 1 file changed, 2 insertions(+) (limited to 'dahdi_maint.c') 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); } -- cgit v1.2.3