summaryrefslogtreecommitdiff
path: root/textproc/ispell-base/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/ispell-base/patches/patch-ak')
-rw-r--r--textproc/ispell-base/patches/patch-ak54
1 files changed, 27 insertions, 27 deletions
diff --git a/textproc/ispell-base/patches/patch-ak b/textproc/ispell-base/patches/patch-ak
index 8ce093a1f28..23a607a0e40 100644
--- a/textproc/ispell-base/patches/patch-ak
+++ b/textproc/ispell-base/patches/patch-ak
@@ -1,8 +1,8 @@
-$NetBSD: patch-ak,v 1.4 2005/03/24 17:08:02 tv Exp $
+$NetBSD: patch-ak,v 1.5 2005/07/07 12:42:20 markd Exp $
---- term.c.orig 2001-07-25 17:51:46.000000000 -0400
+--- term.c.orig 2005-04-15 11:11:36.000000000 +1200
+++ term.c
-@@ -80,7 +80,10 @@ static char Rcs_Id[] =
+@@ -86,7 +86,10 @@ static char Rcs_Id[] =
#include "ispell.h"
#include "proto.h"
#include "msgs.h"
@@ -13,8 +13,8 @@ $NetBSD: patch-ak,v 1.4 2005/03/24 17:08:02 tv Exp $
+#elif defined(USG)
#include <termio.h>
#else
- #include <sgtty.h>
-@@ -151,7 +154,10 @@ static int putch (c)
+ #ifndef __DJGPP__
+@@ -165,7 +168,10 @@ static int iputch (c)
return putchar (c);
}
@@ -26,7 +26,7 @@ $NetBSD: patch-ak,v 1.4 2005/03/24 17:08:02 tv Exp $
static struct termio sbuf;
static struct termio osbuf;
#else
-@@ -279,8 +285,31 @@ retry:
+@@ -292,8 +298,31 @@ retry:
#endif
@@ -59,7 +59,7 @@ $NetBSD: patch-ak,v 1.4 2005/03/24 17:08:02 tv Exp $
(void) sigsetmask (1<<(SIGTSTP-1) | 1<<(SIGTTIN-1) | 1<<(SIGTTOU-1));
#endif
#endif
-@@ -306,7 +335,7 @@ retry:
+@@ -319,7 +348,7 @@ retry:
#endif
#endif
@@ -68,10 +68,10 @@ $NetBSD: patch-ak,v 1.4 2005/03/24 17:08:02 tv Exp $
(void) ioctl (0, TIOCGETP, (char *) &osbuf);
#ifdef TIOCGLTC
(void) ioctl (0, TIOCGLTC, (char *) &oltc);
-@@ -359,7 +388,9 @@ SIGNAL_TYPE done (signo)
+@@ -372,7 +401,9 @@ SIGNAL_TYPE done (signo)
{
if (te)
- tputs (te, 1, putch);
+ tputs (te, 1, iputch);
-#ifdef USG
+#ifdef USE_TERMIOS
+ tcsetattr(0, TCSANOW, &osbuf);
@@ -79,29 +79,29 @@ $NetBSD: patch-ak,v 1.4 2005/03/24 17:08:02 tv Exp $
(void) ioctl (0, TCSETAW, (char *) &osbuf);
#else
(void) ioctl (0, TIOCSETP, (char *) &osbuf);
-@@ -375,7 +406,9 @@ SIGNAL_TYPE done (signo)
- static SIGNAL_TYPE onstop (signo)
- int signo;
- {
+@@ -393,7 +424,9 @@ static SIGNAL_TYPE onstop (signo)
+ imove (li - 1, 0);
+ if (te)
+ tputs (te, 1, iputch);
-#ifdef USG
+#ifdef USE_TERMIOS
+ tcsetattr(0, TCSANOW, &osbuf);
+#elif defined(USG)
- (void) ioctl (0, TCSETAW, (char *) &osbuf);
+ (void) ioctl (0, TCSETAW, (char *) &osbuf);
#else
- (void) ioctl (0, TIOCSETP, (char *) &osbuf);
-@@ -390,7 +423,9 @@ static SIGNAL_TYPE onstop (signo)
- (void) kill (0, signo);
- /* stop here until continued */
+ (void) ioctl (0, TIOCSETP, (char *) &osbuf);
+@@ -412,7 +445,9 @@ static SIGNAL_TYPE onstop (signo)
(void) signal (signo, onstop);
+ if (termchanged)
+ {
-#ifdef USG
+#ifdef USE_TERMIOS
-+ tcsetattr(0, TCSANOW, &sbuf);
++ tcsetattr(0, TCSANOW, &sbuf);
+#elif defined(USG)
- (void) ioctl (0, TCSETAW, (char *) &sbuf);
+ (void) ioctl (0, TCSETAW, (char *) &sbuf);
#else
- (void) ioctl (0, TIOCSETP, (char *) &sbuf);
-@@ -450,7 +485,9 @@ int shellescape (buf)
+ (void) ioctl (0, TIOCSETP, (char *) &sbuf);
+@@ -480,7 +515,9 @@ int shellescape (buf)
}
argv[i] = NULL;
@@ -112,7 +112,7 @@ $NetBSD: patch-ak,v 1.4 2005/03/24 17:08:02 tv Exp $
(void) ioctl (0, TCSETAW, (char *) &osbuf);
#else
(void) ioctl (0, TIOCSETP, (char *) &osbuf);
-@@ -496,7 +533,9 @@ int shellescape (buf)
+@@ -526,7 +563,9 @@ int shellescape (buf)
(void) signal (SIGTSTP, onstop);
#endif
@@ -123,8 +123,8 @@ $NetBSD: patch-ak,v 1.4 2005/03/24 17:08:02 tv Exp $
(void) ioctl (0, TCSETAW, (char *) &sbuf);
#else
(void) ioctl (0, TIOCSETP, (char *) &sbuf);
-@@ -529,7 +568,9 @@ void shescape (buf)
- int ch;
+@@ -562,7 +601,9 @@ void shescape (buf)
+ char curdir[MAXPATHLEN];
#endif
-#ifdef USG
@@ -134,8 +134,8 @@ $NetBSD: patch-ak,v 1.4 2005/03/24 17:08:02 tv Exp $
(void) ioctl (0, TCSETAW, (char *) &osbuf);
#else
(void) ioctl (0, TIOCSETP, (char *) &osbuf);
-@@ -561,7 +602,9 @@ void shescape (buf)
- (void) signal (SIGTSTP, onstop);
+@@ -610,7 +651,9 @@ void shescape (buf)
+ chdir (curdir);
#endif
-#ifdef USG