From: Jeff Peeler Date: Mon, 19 Apr 2010 19:09:46 +0000 (+0000) Subject: make app_voicemail compile with IMAP_STORAGE X-Git-Tag: 1.4.32-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5b5f848be98fb4bd5b654449025457f117ce4b2;p=thirdparty%2Fasterisk.git make app_voicemail compile with IMAP_STORAGE git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@257856 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 40f56eeab5..c75303a350 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2877,6 +2877,7 @@ static int remove_file(char *dir, int msgnum) } #endif +#ifndef IMAP_STORAGE static int copy(char *infile, char *outfile) { int ifd; @@ -2926,7 +2927,9 @@ static int copy(char *infile, char *outfile) } #endif } +#endif +#ifndef IMAP_STORAGE static void copy_plain_file(char *frompath, char *topath) { char frompath2[PATH_MAX], topath2[PATH_MAX]; @@ -2935,7 +2938,9 @@ static void copy_plain_file(char *frompath, char *topath) snprintf(topath2, sizeof(topath2), "%s.txt", topath); copy(frompath2, topath2); } +#endif +#ifndef IMAP_STORAGE static int vm_delete(char *file) { char *txt; @@ -2950,6 +2955,7 @@ static int vm_delete(char *file) unlink(txt); return ast_filedelete(file, NULL); } +#endif static int inbuf(struct baseio *bio, FILE *fi) { @@ -5387,8 +5393,10 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st } else { /* Forward VoiceMail */ long duration = 0; - char msgfile[PATH_MAX]; struct vm_state vmstmp; +#ifndef IMAP_STORAGE + char msgfile[PATH_MAX]; +#endif memcpy(&vmstmp, vms, sizeof(vmstmp));