Files
2013-09-26 17:14:40 +02:00

54 lines
1.2 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
$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 <signal.h>
#include <setjmp.h>
+#include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
#include <config.h>
#include "lisp.h"
@@ -75,8 +78,6 @@ extern int h_errno;
#include <sys/param.h>
#endif
-extern int errno;
-
#ifdef VMS
#include <rms.h>
#include <ttdef.h>
@@ -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)
{