  #LINK=g++
  #	For cross-compiling, eg. with gcc on Linux (see also CC further up):
  #CXX=arm-linux-g++
-@@ -171,8 +204,10 @@
+@@ -171,8 +206,10 @@
  #
  # files for a straight tty port using no native windowing system
  WINTTYSRC = ../win/tty/getline.c ../win/tty/termcap.c ../win/tty/topl.c \

 # endif /* MICRO */
diff -Naur nethack-3.4.3-orig/include/unixconf.h nethack-3.4.3/include/unixconf.h
--- nethack-3.4.3-orig/include/unixconf.h	2003-12-07 15:39:13.000000000 -0800
+++ nethack-3.4.3/include/unixconf.h	2011-08-05 15:25:18.000000000 -0700
@@ -34,7 +34,7 @@
 /* define any of the following that are appropriate */
 #define SVR4		/* use in addition to SYSV for System V Release 4 */

 	/* detect whether a "vt" terminal can handle alternate charsets */
diff -Naur nethack-3.4.3-orig/sys/share/unixtty.c nethack-3.4.3/sys/share/unixtty.c
--- nethack-3.4.3-orig/sys/share/unixtty.c	2003-12-07 15:39:13.000000000 -0800
+++ nethack-3.4.3/sys/share/unixtty.c	2011-09-27 13:38:17.000000000 -0700
@@ -168,8 +168,10 @@
 static void
 setctty()
