--- machine.h.orig	2012-08-03 00:00:00.000000000 +0900
+++ machine.h	2012-11-13 06:11:30.000000000 +0900
@@ -742,7 +742,8 @@
 #define	LANGWIDTH		2
 #define	BSDINSTALL
 #define	TARFROMPAX
-#define	TERMCAPLIB		"-lcurses"
+#define	USETERMINFO
+#define	TERMCAPLIB		"-lncurses"
 #define	DECLSIGLIST
 #define	DECLERRLIST
 #define	USELEAPCNT