From: Michael Jerris Date: Wed, 28 Jan 2009 01:02:12 +0000 (+0000) Subject: mod_easyroute: fix build with -Werror when odbc is not enabled X-Git-Tag: v1.0.3~540 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a6356286c07fcb97a294504b37e4a3b3a1cd9d9;p=thirdparty%2Ffreeswitch.git mod_easyroute: fix build with -Werror when odbc is not enabled git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11530 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_easyroute/mod_easyroute.c b/src/mod/applications/mod_easyroute/mod_easyroute.c index 89da125e15..df6dba7dbc 100644 --- a/src/mod/applications/mod_easyroute/mod_easyroute.c +++ b/src/mod/applications/mod_easyroute/mod_easyroute.c @@ -193,7 +193,9 @@ reallydone: return status; } +#ifdef SWITCH_HAVE_ODBC static char SQL_LOOKUP[] = "SELECT gateways.gateway_ip, gateways.group, gateways.limit, gateways.techprofile, numbers.acctcode, numbers.translated from gateways, numbers where numbers.number = '%q' and numbers.gateway_id = gateways.gateway_id limit 1;"; +#endif static switch_status_t route_lookup(char *dn, easyroute_results_t *results, int noat, char *seperator) {