Commits

Linus Torvalds  committed 77784cd

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..)

  • Participants
  • Parent commits d7148b2

Comments (0)

Files changed (2)

  *	modified by Petri Kutvonen
  */
 
+#include	<errno.h>
 #include        <stdio.h>
 #include	"estruct.h"
 #include        "edef.h"
 
 #if	UNIX
 #include <signal.h>
+static void emergencyexit();
+#ifdef SIGWINCH
+        extern void sizesignal();
+#endif
 #endif
 
 #if	CALLED
 	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