diff options
author | christos <christos@pkgsrc.org> | 2006-05-15 15:33:00 +0000 |
---|---|---|
committer | christos <christos@pkgsrc.org> | 2006-05-15 15:33:00 +0000 |
commit | b2bede7c6c99a35e974f66948e999c66636729a6 (patch) | |
tree | afbbb1fd636341b9428bae591b96b57971ed54ab /chat/icb/patches/patch-bk | |
parent | 5825eb87d4c107543797594962662015ccaf7f28 (diff) | |
download | pkgsrc-b2bede7c6c99a35e974f66948e999c66636729a6.tar.gz |
Make this work with 64 bit hosts.
Diffstat (limited to 'chat/icb/patches/patch-bk')
-rw-r--r-- | chat/icb/patches/patch-bk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chat/icb/patches/patch-bk b/chat/icb/patches/patch-bk new file mode 100644 index 00000000000..49fd87170f2 --- /dev/null +++ b/chat/icb/patches/patch-bk @@ -0,0 +1,27 @@ +$NetBSD: patch-bk,v 1.1 2006/05/15 15:33:00 christos Exp $ + +--- icb/readlineinit.c.orig 1995-02-24 16:20:25.000000000 -0500 ++++ icb/readlineinit.c 2006-05-15 10:47:05.000000000 -0400 +@@ -1,4 +1,6 @@ + #include <readline.h> ++#include <stdlib.h> ++#include <unistd.h> + #include "icb.h" + #include "externs.h" + +@@ -21,12 +23,12 @@ + rl_vi_editing_mode(); /* default to vi, dammit. */ + gv.editmode = "vi"; + +-editor = (char *)getenv("EDITOR"); ++editor = getenv("EDITOR"); + if (!editor) +- editor = (char *)getenv("VISUAL"); ++ editor = getenv("VISUAL"); + + if (editor != NULL) +- if (strcmp((char *)basename(editor),"emacs")==0) ++ if (strcmp(basename(editor),"emacs")==0) + { + rl_emacs_editing_mode(); + gv.editmode = "emacs"; |