diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 45fdfb641a..79bb81eb0b 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1624,6 +1624,7 @@ static int last_message_index(struct ast_vm_user *vmu, char *dir) #endif #endif +#ifndef ODBC_STORAGE static int vm_delete(char *file) { char *txt; @@ -1638,6 +1639,7 @@ static int vm_delete(char *file) unlink(txt); return ast_filedelete(file, NULL); } +#endif static int inbuf(struct baseio *bio, FILE *fi) {