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:
parent
d7148b21fe
commit
77784cd46c
@ -8,6 +8,7 @@
|
||||
* modified by Petri Kutvonen
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include "estruct.h"
|
||||
#include "edef.h"
|
||||
|
11
main.c
11
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
|
||||
|
Loading…
Reference in New Issue
Block a user