Date: Wed, 31 May 2006 23:25:11 +0900 From: Tod McQuillin <devin@spamcop.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: oliver@FreeBSD.org Subject: ports/98217: [PATCH] mail/courier-imap: [Fix build on FreeBSD 4.x] Message-ID: <E1FlRdH-000J0L-BM@mail.distalzou.net> Resent-Message-ID: <200605311430.k4VEUEk6049756@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 98217 >Category: ports >Synopsis: [PATCH] mail/courier-imap: [Fix build on FreeBSD 4.x] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed May 31 14:30:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Tod McQuillin >Release: FreeBSD 4.11-STABLE i386 >Organization: >Environment: System: FreeBSD plexi.pun-pun.prv 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Mar 23 21:52:12 JST 2006 >Description: gcc 2.95 is not happy about the C99ism of declaring variables in the middle of a block. This patch moves the variable declaration to the beginning to allow compilation on gcc 2.95. Added file(s): - files/patch-rfc2045_rfc2045reply.c Port maintainer (oliver@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- courier-imap-4.1.1,1.patch begins here --- Index: files/patch-rfc2045_rfc2045reply.c =================================================================== RCS file: files/patch-rfc2045_rfc2045reply.c diff -N files/patch-rfc2045_rfc2045reply.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-rfc2045_rfc2045reply.c 31 May 2006 01:08:54 -0000 @@ -0,0 +1,22 @@ +--- rfc2045/rfc2045reply.c~ Thu May 25 08:48:48 2006 ++++ rfc2045/rfc2045reply.c Wed May 31 10:08:03 2006 +@@ -591,7 +591,9 @@ + off_t start_pos, end_pos, start_body, dummy; + int errflag=0; + struct rfc2045headerinfo *hi; +- ++#if HAVE_UNICODE ++ const struct unicode_info *uiptr=NULL; ++#endif + oldtocc=0; + oldtolist=0; + oldfrom=0; +@@ -601,8 +603,6 @@ + oldreferences=0; + whowrote=0; + #if HAVE_UNICODE +- const struct unicode_info *uiptr=NULL; +- + if (ri->charset && *(ri->charset)) + uiptr = unicode_find(ri->charset); + #endif --- courier-imap-4.1.1,1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1FlRdH-000J0L-BM>