Date: Fri, 15 Dec 2006 01:16:17 +0100 (CET) From: trasz <trasz@pin.if.uz.zgora.pl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/106742: [PATCH] editors/em: fix build with gcc41 Message-ID: <20061215001617.1AFEB39DBA@pin.if.uz.zgora.pl> Resent-Message-ID: <200612150030.kBF0U6E1047456@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 106742 >Category: ports >Synopsis: [PATCH] editors/em: fix build with gcc41 >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: Fri Dec 15 00:30:06 GMT 2006 >Closed-Date: >Last-Modified: >Originator: trasz >Release: FreeBSD 6.1-RELEASE-p10 i386 >Organization: >Environment: System: FreeBSD pin.if.uz.zgora.pl 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Wed Nov 15 19:16:30 CET 2006 >Description: Fix build with gcc41. http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.7.2006121307/em-4.0.17_1.log Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- em-4.0.17_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/editors/em/files/patch-ag /home/trasz/em/files/patch-ag --- /usr/ports/editors/em/files/patch-ag Sun Jun 13 00:18:46 2004 +++ /home/trasz/em/files/patch-ag Fri Dec 15 01:15:44 2006 @@ -1,5 +1,5 @@ --- main.c.orig Fri Jan 26 21:31:22 2001 -+++ main.c Sun Jun 13 00:19:43 2004 ++++ main.c Fri Dec 15 01:11:42 2006 @@ -49,11 +49,17 @@ * * 4.0 Petri Kutvonen, 1-Sep-91 @@ -22,12 +22,18 @@ */ #include <stdio.h> -@@ -89,6 +95,13 @@ +@@ -89,6 +95,19 @@ #include <signal.h> #endif +static int prtuse(char*); + ++#if UNIX ++static void emergencyexit(); ++#ifdef SIGWINCH ++extern void sizesignal(); ++#endif ++#endif + +#if defined(TOYCODE) && defined(BSD) +#include <sys/unistd.h> @@ -36,7 +42,21 @@ #if CALLED emacs(argc, argv) #else -@@ -225,9 +238,21 @@ +@@ -131,13 +150,6 @@ + int sink; /* for file name scan */ + #endif + +-#if UNIX +- static void emergencyexit(); +-#ifdef SIGWINCH +- extern void sizesignal(); +-#endif +-#endif +- + #if PKCODE & VMS + (void) umask(-1); /* use old protection (this is at wrong place) */ + #endif +@@ -225,9 +237,21 @@ #if TOYCODE case 't': /* -t for tabmask change */ case 'T': @@ -61,7 +81,7 @@ #endif default: /* unknown switch */ /* ignore this for now */ -@@ -273,7 +298,11 @@ +@@ -273,7 +297,11 @@ sink = strlen(argv[carg]); if (sink >= 2 && (argv[carg][sink-2] == '.' && (argv[carg][sink-1] == 'c' || argv[carg][sink-1] == 'h'))) @@ -74,7 +94,7 @@ #endif } } -@@ -769,7 +798,7 @@ +@@ -769,7 +797,7 @@ ALWAYS null terminate */ --- em-4.0.17_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?20061215001617.1AFEB39DBA>