[PATCH] news/pan: fix build with gcc41.

trasz trasz at pin.if.uz.zgora.pl
Sat Oct 7 12:28:58 PDT 2006


>Submitter-Id:	current-users
>Originator:	trasz
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] news/pan: fix build with gcc41.
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 6.1-RELEASE i386
>Environment:
System: FreeBSD pin.if.uz.zgora.pl 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat Jun  3 01:12:10 CEST
>Description:
Fix build with gcc41.

(http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.7.2006100419/pan-0.14.2.91_4.log)

Added file(s):
- files/patch-pan-base-msort.c

Port maintainer (gnome at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- pan-0.14.2.91_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/news/pan/files/patch-pan-base-msort.c /home/trasz/pan/files/patch-pan-base-msort.c
--- /usr/ports/news/pan/files/patch-pan-base-msort.c	Thu Jan  1 01:00:00 1970
+++ /home/trasz/pan/files/patch-pan-base-msort.c	Sat Oct  7 21:22:48 2006
@@ -0,0 +1,32 @@
+--- pan/base/msort.c.orig	Sat Oct  7 21:16:40 2006
++++ pan/base/msort.c	Sat Oct  7 21:16:50 2006
+@@ -64,15 +64,25 @@
+ 		{
+ 			if ((*cmp) (b1, b2) <= 0)
+ 			{
++				unsigned long int *tmpl=tmp;
++				unsigned long int *b1l=b1;
++
+ 				--n1;
+-				*((unsigned long int *) tmp)++ =
+-					*((unsigned long int *) b1)++;
++				*tmpl++ = *b1l++;
++
++				tmp=tmpl;
++				b1=b1l;
+ 			}
+ 			else
+ 			{
++				unsigned long int *tmpl=tmp;
++				unsigned long int *b2l=b2;
++
+ 				--n2;
+-				*((unsigned long int *) tmp)++ =
+-					*((unsigned long int *) b2)++;
++				*tmpl++ = *b2l++;
++
++				tmp=tmpl;
++				b2=b2l;
+ 			}
+ 		}
+ 	else
--- pan-0.14.2.91_4.patch ends here ---



More information about the freebsd-gnome mailing list