1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-18 15:26:23 -05:00

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..)
This commit is contained in:
Linus Torvalds 2005-05-31 08:58:59 -07:00
parent d7148b21fe
commit 77784cd46c
2 changed files with 5 additions and 7 deletions

View File

@ -8,6 +8,7 @@
* modified by Petri Kutvonen
*/
#include <errno.h>
#include <stdio.h>
#include "estruct.h"
#include "edef.h"

11
main.c
View File

@ -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