From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 15 00:41:01 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A6EB216A407 for ; Fri, 15 Dec 2006 00:41:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7CCB43FEE for ; Fri, 15 Dec 2006 00:28:35 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBF0U79p047458 for ; Fri, 15 Dec 2006 00:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBF0U6E1047456; Fri, 15 Dec 2006 00:30:06 GMT (envelope-from gnats) Resent-Date: Fri, 15 Dec 2006 00:30:06 GMT Resent-Message-Id: <200612150030.kBF0U6E1047456@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, trasz Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 499BD16A4A0 for ; Fri, 15 Dec 2006 00:23:55 +0000 (UTC) (envelope-from trasz@pin.if.uz.zgora.pl) Received: from pin.if.uz.zgora.pl (pin.if.uz.zgora.pl [212.109.128.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FE7544165 for ; Fri, 15 Dec 2006 00:11:30 +0000 (GMT) (envelope-from trasz@pin.if.uz.zgora.pl) Received: by pin.if.uz.zgora.pl (Postfix, from userid 1001) id 1AFEB39DBA; Fri, 15 Dec 2006 01:16:17 +0100 (CET) Message-Id: <20061215001617.1AFEB39DBA@pin.if.uz.zgora.pl> Date: Fri, 15 Dec 2006 01:16:17 +0100 (CET) From: trasz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/106742: [PATCH] editors/em: fix build with gcc41 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2006 00:41:01 -0000 >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 -@@ -89,6 +95,13 @@ +@@ -89,6 +95,19 @@ #include #endif +static int prtuse(char*); + ++#if UNIX ++static void emergencyexit(); ++#ifdef SIGWINCH ++extern void sizesignal(); ++#endif ++#endif + +#if defined(TOYCODE) && defined(BSD) +#include @@ -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: