Patch by Kei Kebreau Keeping "#define CHDIR" makes NetHack unable to find its scoreboard record. The other two modifications enable building on Linux and building with the ncurses library, respectively. diff -r -u nethack-3.6.0.orig/include/config.h nethack-3.6.0/include/config.h --- nethack-3.6.0.orig/include/config.h 2016-05-27 17:20:03.062318307 -0400 +++ nethack-3.6.0/include/config.h 2016-05-31 16:48:04.283642766 -0400 @@ -308,7 +308,6 @@ #define INSURANCE /* allow crashed game recovery */ #ifndef MAC -#define CHDIR /* delete if no chdir() available */ #endif #ifdef CHDIR diff -r -u nethack-3.6.0.orig/include/unixconf.h nethack-3.6.0/include/unixconf.h --- nethack-3.6.0.orig/include/unixconf.h 2016-05-27 17:20:03.062318307 -0400 +++ nethack-3.6.0/include/unixconf.h 2016-05-30 20:33:52.132273630 -0400 @@ -36,7 +36,7 @@ #define NETWORK /* if running on a networked system */ /* e.g. Suns sharing a playground through NFS */ /* #define SUNOS4 */ /* SunOS 4.x */ -/* #define LINUX */ /* Another Unix clone */ +#define LINUX /* Another Unix clone */ /* #define CYGWIN32 */ /* Unix on Win32 -- use with case sensitive defines */ /* #define GENIX */ /* Yet Another Unix Clone */ /* #define HISX */ /* Bull Unix for XPS Machines */ diff -r -u nethack-3.6.0.orig/sys/unix/Makefile.src nethack-3.6.0/sys/unix/Makefile.src --- nethack-3.6.0.orig/sys/unix/Makefile.src 2016-05-27 17:20:03.082318966 -0400 +++ nethack-3.6.0/sys/unix/Makefile.src 2016-06-05 12:30:33.301505514 -0400 @@ -238,7 +238,7 @@ # WINTTYLIB = -ltermcap # WINTTYLIB = -lcurses # WINTTYLIB = -lcurses16 -# WINTTYLIB = -lncurses +WINTTYLIB = -lncurses #WINTTYLIB = -ltermlib # # libraries for X11