diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 4f57eef32..803e9ee6c 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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; |