From: Joshua Colp Date: Thu, 21 Jun 2007 13:58:36 +0000 (+0000) Subject: Fix building with ODBC storage enabled. (issue #10025 reported by denisgalvao) X-Git-Tag: 1.4.6~68 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce4f92604a0f913c4edde636e9b4211187ebab69;p=thirdparty%2Fasterisk.git Fix building with ODBC storage enabled. (issue #10025 reported by denisgalvao) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70677 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 4f57eef32f..803e9ee6ca 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1604,7 +1604,7 @@ static void copy_file(char *frompath, char *topath) /* * A negative return value indicates an error. */ -#if (!defined(IMAP_STORAGE) || defined(ODBC_STORAGE)) +#if (!defined(IMAP_STORAGE) && !defined(ODBC_STORAGE)) static int last_message_index(struct ast_vm_user *vmu, char *dir) { int x; @@ -1623,6 +1623,7 @@ static int last_message_index(struct ast_vm_user *vmu, char *dir) return x - 1; } #endif +#endif static int vm_delete(char *file) { @@ -1639,8 +1640,6 @@ static int vm_delete(char *file) return ast_filedelete(file, NULL); } - -#endif static int inbuf(struct baseio *bio, FILE *fi) { int l;