From 77784cd46cdb8584cf3d78df4a3e8b9a67c9130b Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 31 May 2005 08:58:59 -0700 Subject: [PATCH] Minimal patches to make uemacs compile in a modern environment. make sure to include , and allow for the fact that newer gcc's don't allow function declarations in function scope (don't ask me why, but there you have it..) --- display.c | 1 + main.c | 11 ++++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/display.c b/display.c index 45aca3b..d0d49f8 100644 --- a/display.c +++ b/display.c @@ -8,6 +8,7 @@ * modified by Petri Kutvonen */ +#include #include #include "estruct.h" #include "edef.h" diff --git a/main.c b/main.c index 800a7b0..c2e1871 100644 --- a/main.c +++ b/main.c @@ -82,6 +82,10 @@ extern unsigned _stklen = 32766; #if UNIX #include +static void emergencyexit(); +#ifdef SIGWINCH + extern void sizesignal(); +#endif #endif #if CALLED @@ -122,13 +126,6 @@ char *argv[]; /* argument strings */ int (*execfunc)(); /* ptr to function to execute */ #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