aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-05-31 08:58:59 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-05-31 08:58:59 -0700
commit77784cd46cdb8584cf3d78df4a3e8b9a67c9130b (patch)
tree55065c853713b350788d1e984e08a788cf0d924a
parentd7148b21fe4fff228acf5b7006cf9323bd750df7 (diff)
downloaduemacs-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.c1
-rw-r--r--main.c11
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 <errno.h>
#include <stdio.h>
#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 <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