pkgsrc/chat/tirc/patches/patch-ae
2005-12-15 23:02:33 +00:00

21 lines
646 B
Text

$NetBSD: patch-ae,v 1.1 2005/12/15 23:02:33 joerg Exp $
--- tty.c.orig 2005-12-15 22:54:31.000000000 +0000
+++ tty.c
@@ -35,6 +35,7 @@ static char rcsid[] = "$Id: tty.c,v 1.33
#ifdef HAVE_CTYPE_H
#include <ctype.h>
#endif
+#include <errno.h>
#if defined(HAVE_TCGETATTR) && defined(HAVE_TCSETATTR) && \
(defined(HAVE_TERMIOS_H) || defined(HAVE_SYS_TERMIOS_H))
@@ -54,8 +55,6 @@ static char rcsid[] = "$Id: tty.c,v 1.33
static void regaddln __P((struct tty_region *, char *));
static int tty_putch __P((int));
-extern int errno;
-
static enum { STATE_RESET, STATE_RAW, STATE_CBREAK }
ttystate = STATE_RESET;
#ifdef USE_TERMIOS