]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix building with ODBC storage enabled. (issue #10025 reported by denisgalvao)
authorJoshua Colp <jcolp@digium.com>
Thu, 21 Jun 2007 13:58:36 +0000 (13:58 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 21 Jun 2007 13:58:36 +0000 (13:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@70677 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 4f57eef32fea2d168acf3a3c296fbe458dcb8a1b..803e9ee6ca8b264dace21b2b8250399cf2faa829 100644 (file)
@@ -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;