diff -crN rogue_s.old/Makefile.nix rogue_s/Makefile.nix *** rogue_s.old/Makefile.nix Sun Sep 13 23:36:02 1992 --- rogue_s/Makefile.nix Fri Aug 13 11:42:25 1999 *************** *** 10,19 **** room.o save.o score.o spechit.o throw.o \ trap.o use.o zap.o ! # for BSD (Japanese, using my own CURSES) by Yasha CC = gcc -traditional-cpp ! CFLAGS = -O -g -DUNIX -DUNIX_BSD4_2 -DCURSES -DJAPAN -DEUC -DTOPSCO ! LIBS = # for 386BSD (Japanese, using my own CURSES) by Yasha #CC = gcc --- 10,24 ---- room.o save.o score.o spechit.o throw.o \ trap.o use.o zap.o ! # for LINUX (Japanese, Color, using my own CURSES) by Pekoe CC = gcc -traditional-cpp ! CFLAGS = -O2 -m486 -g -DUNIX -DUNIX_BSD4_2 -DCURSES -DJAPAN -DEUC -DTOPSCO -DCOLOR -DLINUX ! LIBS = -lncurses -ltermcap -lbsd ! ! # for BSD (Japanese, using my own CURSES) by Yasha ! #CC = gcc -traditional-cpp ! #CFLAGS = -O -g -DUNIX -DUNIX_BSD4_2 -DCURSES -DJAPAN -DEUC -DTOPSCO ! #LIBS = # for 386BSD (Japanese, using my own CURSES) by Yasha #CC = gcc diff -crN rogue_s.old/machdep.c rogue_s/machdep.c *** rogue_s.old/machdep.c Mon Sep 14 14:40:12 1992 --- rogue_s/machdep.c Fri Aug 13 11:33:12 1999 *************** *** 60,66 **** # endif /* UNIX_SYSV */ # ifdef UNIX_BSD4_2 # include ! # include # endif /* UNIX_BSD4_2 */ #endif /* UNIX */ #ifdef HUMAN --- 60,70 ---- # endif /* UNIX_SYSV */ # ifdef UNIX_BSD4_2 # include ! # ifdef LINUX ! # include ! # else ! # include ! # endif # endif /* UNIX_BSD4_2 */ #endif /* UNIX */ #ifdef HUMAN *************** *** 68,74 **** #include /* by Yasha */ #include /* by Yasha */ #include /* by Yasha */ ! #include /* by Yasha */ #include /* by Yasha */ #else #ifdef MSDOS --- 72,82 ---- #include /* by Yasha */ #include /* by Yasha */ #include /* by Yasha */ ! #ifdef LINUX ! # include /* by Yasha */ ! #else ! # include /* by Yasha */ ! #endif #include /* by Yasha */ #else #ifdef MSDOS *************** *** 278,287 **** --- 286,297 ---- #ifdef UNIX_386BSD fpurge(stdin); #else + #ifndef LINUX ln += stdin->_cnt; for (; ln > 0; ln--) { (void) getchar(); } + #endif #endif /*386BSD*/ #endif /* UNIX */ *************** *** 397,405 **** --- 407,421 ---- md_heed_signals() { #ifdef UNIX + # ifdef LINUX + signal(SIGINT, (void*)onintr); + signal(SIGQUIT, (void*)byebye); + signal(SIGHUP, (void*)error_save); + # else signal(SIGINT, onintr); signal(SIGQUIT, byebye); signal(SIGHUP, error_save); + # endif #endif /* UNIX */ #ifdef HUMAN