$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 +#include +#include #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";