mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user