]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix build failure
authorMichael Jerris <mike@jerris.com>
Wed, 24 Jun 2009 16:27:28 +0000 (16:27 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 24 Jun 2009 16:27:28 +0000 (16:27 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13941 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_odbc.c

index 0c0b7d2a6a154ee9d61026d29e8849442a3c8a65..3066c4e1cbf1d6428646ad4b810794923fb0fca9 100644 (file)
@@ -215,9 +215,9 @@ SWITCH_DECLARE(switch_odbc_status_t) switch_odbc_handle_connect(switch_odbc_hand
 #endif
 }
 
+#ifdef SWITCH_HAVE_ODBC
 static int db_is_up(switch_odbc_handle_t *handle)
 {
-#ifdef SWITCH_HAVE_ODBC
        int ret = 0;
        SQLHSTMT stmt = NULL;
        SQLLEN m = 0;
@@ -316,10 +316,8 @@ static int db_is_up(switch_odbc_handle_t *handle)
        }
 
        return ret;
-#else
-       return SWITCH_ODBC_FAIL;
-#endif
 }
+#endif
 
 SWITCH_DECLARE(switch_odbc_status_t) switch_odbc_statement_handle_free(switch_odbc_statement_handle_t * stmt)
 {