summaryrefslogtreecommitdiff
path: root/chat/icb/patches
diff options
context:
space:
mode:
Diffstat (limited to 'chat/icb/patches')
-rw-r--r--chat/icb/patches/patch-av25
-rw-r--r--chat/icb/patches/patch-bq12
2 files changed, 25 insertions, 12 deletions
diff --git a/chat/icb/patches/patch-av b/chat/icb/patches/patch-av
index a69380e717d..639a89d9820 100644
--- a/chat/icb/patches/patch-av
+++ b/chat/icb/patches/patch-av
@@ -1,13 +1,14 @@
-$NetBSD: patch-av,v 1.2 2008/12/17 02:19:59 christos Exp $
+$NetBSD: patch-av,v 1.3 2009/07/24 01:24:39 christos Exp $
--- icb/unix.c.orig 1995-02-24 16:20:31.000000000 -0500
-+++ icb/unix.c 2008-12-16 21:16:10.000000000 -0500
-@@ -7,20 +7,26 @@
++++ icb/unix.c 2009-07-23 21:22:34.000000000 -0400
+@@ -7,20 +7,27 @@
#include <stdio.h>
#include "icb.h"
#include "externs.h"
+#include <limits.h>
#include <pwd.h>
++#include <time.h>
#include <sys/dir.h>
#undef stty
@@ -31,7 +32,7 @@ $NetBSD: patch-av,v 1.2 2008/12/17 02:19:59 christos Exp $
#define TTYSTRUCT sgttyb
#define stty(fd,buf) ioctl((fd),TIOCSETN,(buf))
#define gtty(fd,buf) ioctl((fd),TIOCGETP,(buf))
-@@ -30,6 +36,7 @@
+@@ -30,6 +37,7 @@
#define stty(fd,buf) ioctl((fd),TCSETA,(buf))
#define gtty(fd,buf) ioctl((fd),TCGETA,(buf))
#endif /* SYSV */
@@ -39,7 +40,7 @@ $NetBSD: patch-av,v 1.2 2008/12/17 02:19:59 christos Exp $
char *getlogin();
-@@ -65,13 +72,16 @@
+@@ -65,13 +73,16 @@
/* set line buffering for an open file pointer */
/* output will be flushed every newline */
@@ -58,7 +59,7 @@ $NetBSD: patch-av,v 1.2 2008/12/17 02:19:59 christos Exp $
}
-@@ -79,13 +89,13 @@
+@@ -79,13 +90,13 @@
pushback(c)
char c;
{
@@ -75,7 +76,7 @@ $NetBSD: patch-av,v 1.2 2008/12/17 02:19:59 christos Exp $
}
-@@ -94,25 +104,25 @@
+@@ -94,25 +105,25 @@
getterm()
{
@@ -109,7 +110,7 @@ $NetBSD: patch-av,v 1.2 2008/12/17 02:19:59 christos Exp $
/* get local special chars */
if (ioctl(0, TIOCGLTC, &lt) < 0) {
ttyinfo.redraw = '\022'; /* ^R */
-@@ -121,10 +131,10 @@
+@@ -121,10 +132,10 @@
ttyinfo.redraw = lt.t_rprntc;
ttyinfo.werase = lt.t_werasc;
}
@@ -122,7 +123,7 @@ $NetBSD: patch-av,v 1.2 2008/12/17 02:19:59 christos Exp $
/* get the current window size */
getwinsize();
-@@ -145,14 +155,14 @@
+@@ -145,14 +156,14 @@
bcopy((char *)&origtty, (char *)&tty, (unsigned)sizeof(struct TTYSTRUCT));
/* turn on cbreak - turn off echo */
@@ -142,7 +143,7 @@ $NetBSD: patch-av,v 1.2 2008/12/17 02:19:59 christos Exp $
echomode = 0;
/* set the new flags */
-@@ -206,7 +216,11 @@
+@@ -206,7 +217,11 @@
struct passwd *pw;
char login[17];
char *p = login;
@@ -154,7 +155,7 @@ $NetBSD: patch-av,v 1.2 2008/12/17 02:19:59 christos Exp $
/* has to start with a tilde */
if (*s++ != '~')
-@@ -258,11 +272,11 @@
+@@ -258,11 +273,11 @@
}
/* turn on echo */
@@ -170,7 +171,7 @@ $NetBSD: patch-av,v 1.2 2008/12/17 02:19:59 christos Exp $
echomode = 1;
-@@ -287,11 +301,11 @@
+@@ -287,11 +302,11 @@
}
/* turn off echo */
diff --git a/chat/icb/patches/patch-bq b/chat/icb/patches/patch-bq
new file mode 100644
index 00000000000..e243d78e7e5
--- /dev/null
+++ b/chat/icb/patches/patch-bq
@@ -0,0 +1,12 @@
+$NetBSD: patch-bq,v 1.3 2009/07/24 01:24:39 christos Exp $
+
+--- icb/main.c.orig 1995-02-24 16:20:24.000000000 -0500
++++ icb/main.c 2009-07-23 21:19:32.000000000 -0400
+@@ -7,6 +7,7 @@
+ #include "externs.h"
+ #include <sys/wait.h>
+ #include <sys/dir.h>
++#include <time.h>
+ #include "getswitch.h"
+
+ char *optv[] = { "clear", "list", "who", "restricted", "nickname:", "group:",