From 840c92ae17f70051eefbca774d4ad042896b54df Mon Sep 17 00:00:00 2001 From: miwi Date: Sat, 16 Dec 2006 09:56:49 +0000 Subject: - Fix build with gcc 4.X PR: ports/106742 Submitted by: trasz --- editors/em/files/patch-ag | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'editors/em') diff --git a/editors/em/files/patch-ag b/editors/em/files/patch-ag index 33267b37d56a..d94a2dac738a 100644 --- a/editors/em/files/patch-ag +++ b/editors/em/files/patch-ag @@ -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 */ -- cgit