diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 5ded29db4b..175620237f 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1790,6 +1790,7 @@ static int last_message_index(struct ast_vm_user *vmu, char *dir) #endif +#ifndef ODBC_STORAGE static int vm_delete(char *file) { char *txt; @@ -1807,6 +1808,7 @@ static int vm_delete(char *file) unlink(txt); return ast_filedelete(file, NULL); } +#endif static int inbuf(struct baseio *bio, FILE *fi) {