  
  /*
   * Per-user and system-wide ssh "rc" files.  These files are executed with
-@@ -105,7 +113,7 @@
+@@ -105,7 +112,7 @@
   * passed "proto cookie" as arguments if X11 forwarding with spoofing is in
   * use.  xauth will be run if neither of these exists.
   */

+			AC_CHECK_LIB(curses, tgetent, [LIBEDIT="-ledit -lcurses"], AC_CHECK_LIB(ncurses, tgetent, [LIBEDIT="-ledit -lncurses"]))
 		fi
 		OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
 		AC_CHECK_LIB(edit, el_init,
diff -urN openssh-6.2p1/pathnames.h openssh-6.2p1-haiku/pathnames.h
--- openssh-6.2p1/pathnames.h
+++ openssh-6.2p1-haiku/pathnames.h
@@ -12,7 +12,14 @@
  * called by a name other than "ssh" or "Secure Shell".
  */

 
 /*
  * Configuration file in user's home directory.  This file need not be
@@ -84,7 +91,7 @@
  * particularly secret.  If the user's home directory resides on an NFS
  * volume where root is mapped to nobody, this may need to be world-readable.
  */
