$NetBSD: patch-ce,v 1.3 2013/04/21 15:39:59 joerg Exp $ - use standard headers - don't declare own errno --- src/sysdep.c.orig 1995-06-10 03:07:04.000000000 +0000 +++ src/sysdep.c @@ -20,6 +20,9 @@ the Free Software Foundation, 675 Mass A #include #include +#include +#include +#include #include #include "lisp.h" @@ -75,8 +78,6 @@ extern int h_errno; #include #endif -extern int errno; - #ifdef VMS #include #include @@ -204,7 +205,7 @@ change_input_fd (fd) /* Discard pending input on descriptor input_fd. */ -discard_tty_input () +void discard_tty_input (void) { struct emacs_tty buf; @@ -1096,7 +1097,7 @@ static struct ltchars new_ltchars = {-1, static struct tchars new_tchars = {-1,-1,-1,-1,-1,-1}; #endif -init_sys_modes () +void init_sys_modes(void) { struct emacs_tty tty; @@ -1515,7 +1516,7 @@ set_window_size (fd, height, width) /* Prepare the terminal for exiting Emacs; move the cursor to the bottom of the frame, turn off interrupt-driven I/O, etc. */ -reset_sys_modes () +void reset_sys_modes(void) { if (noninteractive) {