]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix compilation when ODBC_STORAGE is defined.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 31 Jan 2011 06:54:45 +0000 (06:54 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 31 Jan 2011 06:54:45 +0000 (06:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@304952 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 9dbd23e77e691c37c5d93a3cdb9ae0be4fac333e..e593ade46e511f8a4a2431ceb03231dd3effe3a4 100644 (file)
@@ -4556,7 +4556,7 @@ leave_vm_out:
        return res;
 }
 
-#ifndef IMAP_STORAGE
+#if !defined(IMAP_STORAGE) && !defined(ODBC_STORAGE)
 static int resequence_mailbox(struct ast_vm_user *vmu, char *dir, int stopcount)
 {
        /* we know the actual number of messages, so stop process when number is hit */
@@ -5994,7 +5994,9 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc
 #ifndef IMAP_STORAGE
 static int open_mailbox(struct vm_state *vms, struct ast_vm_user *vmu,int box)
 {
+#ifndef ODBC_STORAGE
        int res = 0;
+#endif
        int count_msg, last_msg;
 
        ast_copy_string(vms->curbox, mbox(box), sizeof(vms->curbox));