# HG changeset patch # User Andrew Innes # Date 966984016 0 # Node ID 1a4f15527382ce22e14d82f16dee5daf3a385e5f # Parent 92f108b8b281b8df542ce8627e250f5ed4ef0741 Include keyboard.h before frame.h. (NULL) [WINDOWSNT]: Define NULL if not defined. [USE_CRT_DLL]: Remove unnecessary extern, which screws up dllimport attributes. diff -r 92f108b8b281 -r 1a4f15527382 src/sysdep.c --- a/src/sysdep.c Tue Aug 22 22:38:05 2000 +0000 +++ b/src/sysdep.c Tue Aug 22 22:40:16 2000 +0000 @@ -54,7 +54,9 @@ #define read sys_read #define write sys_write #include -extern int errno; +#ifndef NULL +#define NULL 0 +#endif #endif /* not WINDOWSNT */ /* Does anyone other than VMS need this? */ @@ -106,9 +108,11 @@ #endif #endif +#ifndef USE_CRT_DLL #ifndef errno extern int errno; #endif +#endif #ifdef VMS #include @@ -176,6 +180,7 @@ extern int quit_char; +#include "keyboard.h" #include "frame.h" #include "window.h" #include "termhooks.h"