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
This commit is contained in:
Joshua Colp
2007-06-21 13:58:36 +00:00
parent e7c040283e
commit ce4f92604a

View 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;