diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-05-31 08:58:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-05-31 08:58:59 -0700 |
commit | 77784cd46cdb8584cf3d78df4a3e8b9a67c9130b (patch) | |
tree | 55065c853713b350788d1e984e08a788cf0d924a | |
parent | d7148b21fe4fff228acf5b7006cf9323bd750df7 (diff) | |
download | uemacs-77784cd46cdb8584cf3d78df4a3e8b9a67c9130b.tar.gz |
Minimal patches to make uemacs compile in a modern environment.
make sure to include <errno.h>, 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..)
-rw-r--r-- | display.c | 1 | ||||
-rw-r--r-- | main.c | 11 |
2 files changed, 5 insertions, 7 deletions
@@ -8,6 +8,7 @@ * modified by Petri Kutvonen */ +#include <errno.h> #include <stdio.h> #include "estruct.h" #include "edef.h" @@ -82,6 +82,10 @@ extern unsigned _stklen = 32766; #if UNIX #include <signal.h> +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 |