summaryrefslogtreecommitdiff
path: root/chat/tirc/patches/patch-ae
blob: 05188ed3eb4159e702896d2e1fbb3d886841beff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$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