diff options
author | miwi <miwi@FreeBSD.org> | 2006-12-16 17:56:49 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-12-16 17:56:49 +0800 |
commit | 840c92ae17f70051eefbca774d4ad042896b54df (patch) | |
tree | a5c6f6446a92e5090affd1f13b030a463e5472ef /editors/em | |
parent | 38dc958b06bd401881635ab5735a64f78c96c148 (diff) | |
download | freebsd-ports-gnome-840c92ae17f70051eefbca774d4ad042896b54df.tar.gz freebsd-ports-gnome-840c92ae17f70051eefbca774d4ad042896b54df.tar.zst freebsd-ports-gnome-840c92ae17f70051eefbca774d4ad042896b54df.zip |
- Fix build with gcc 4.X
PR: ports/106742
Submitted by: trasz
Diffstat (limited to 'editors/em')
-rw-r--r-- | editors/em/files/patch-ag | 30 |
1 files changed, 25 insertions, 5 deletions
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 <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 */ |