aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-21 13:58:36 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-21 13:58:36 +0000
commiteea090876fbcc7fec0c00783078aa542a9704d02 (patch)
treec48a703bf1d2dc7642085e5352e3b48772e627ff /apps
parent7126d5f7a9dbde4cdb7e0b2713fb3b8e9130c871 (diff)
Fix building with ODBC storage enabled. (issue #10025 reported by denisgalvao)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@70677 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c5
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;