git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@304952
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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 */
#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));