*** ./src/Makefile.in Wed May 15 21:25:20 1996 --- ../gnuchess-4.0.pl77/./src/Makefile.in Tue Jun 30 10:23:06 1998 *************** *** 252,261 **** game: game.c gnuchess.h $(CC) $(ALL_CFLAGS) -o game $(srcdir)/game.c ! postprint: postprint.o $(CC) $(ALL_CFLAGS) $(HASH) -o postprint postprint.o ! gnuan.o: gnuan.c gnuchess.h version.h $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF) -DIGNUAN $(BINBOOK) -c $(srcdir)/gnuan.c --- 252,261 ---- game: game.c gnuchess.h $(CC) $(ALL_CFLAGS) -o game $(srcdir)/game.c ! postprint: postprint.o $(CC) $(ALL_CFLAGS) $(HASH) -o postprint postprint.o ! gnuan.o: gnuan.c gnuchess.h version.h $(CC) $(ALL_CFLAGS) $(HASH) $(LANGF) -DIGNUAN $(BINBOOK) -c $(srcdir)/gnuan.c *************** *** 421,427 **** $(CC) $(ALL_CFLAGS) -o ecocvt $(srcdir)/ecocvt.c gnuchess.data: $(BOOK) ! -rm gnuchess.data echo 3 0 >test;echo quit >>test gzip -d -c $(BOOK) > ./t cat test| ./gnuchessr -b ./t -B gnuchess.data $(BOOKOPTS) --- 421,427 ---- $(CC) $(ALL_CFLAGS) -o ecocvt $(srcdir)/ecocvt.c gnuchess.data: $(BOOK) ! -rm -f gnuchess.data echo 3 0 >test;echo quit >>test gzip -d -c $(BOOK) > ./t cat test| ./gnuchessr -b ./t -B gnuchess.data $(BOOKOPTS) *************** *** 433,439 **** ./ecosort ./ecocvt step2.eco gnuchess.eco -rm -f step1.eco step2.eco ! check: gnuchessr $(srcdir)/../test/testall cat $(srcdir)/../test/testall | ./gnuchessr > test.out 2>&1 --- 433,439 ---- ./ecosort ./ecocvt step2.eco gnuchess.eco -rm -f step1.eco step2.eco ! check: gnuchessr $(srcdir)/../test/testall cat $(srcdir)/../test/testall | ./gnuchessr > test.out 2>&1 *** ./src/dspcom.c Mon May 20 00:38:47 1996 --- ../gnuchess-4.0.pl77/./src/dspcom.c Wed Jul 1 11:43:01 1998 *************** *** 71,76 **** --- 71,77 ---- #include #ifndef AMIGADOS #include + #include #endif #endif #endif /* Think_C */ *************** *** 1447,1454 **** extern int errno; int i; #ifdef FIONREAD ! if (i = ioctl ((int) 0, FIONREAD, &nchar)) { perror ("FIONREAD"); fprintf (stderr, "You probably have a non-ANSI ; see README. %d %d %lx\n", --- 1448,1467 ---- extern int errno; int i; #ifdef FIONREAD ! if ((i = ioctl ((int) 0, FIONREAD, &nchar)) && (errno == ENOSYS)) { + struct timeval no_delay = { 0, 0 }; + fd_set readfds; + FD_ZERO(&readfds); + FD_SET(0, &readfds); + if ((i = select (1, &readfds, NULL, NULL, &no_delay)) > 0) + { + nchar = i; + i = 0; + } + } + if (i) + { perror ("FIONREAD"); fprintf (stderr, "You probably have a non-ANSI ; see README. %d %d %lx\n", *************** *** 1528,1534 **** extern int errno; int i; #ifdef FIONREAD ! if (i = ioctl ((int) 0, FIONREAD, &nchar)) { perror ("FIONREAD"); fprintf (stderr, --- 1541,1559 ---- extern int errno; int i; #ifdef FIONREAD ! if ((i = ioctl ((int) 0, FIONREAD, &nchar)) && (errno == ENOSYS)) ! { ! struct timeval no_delay = { 0, 0 }; ! fd_set readfds; ! FD_ZERO(&readfds); ! FD_SET(0, &readfds); ! if ((i = select (1, &readfds, NULL, NULL, &no_delay)) > 0) ! { ! nchar = i; ! i = 0; ! } ! } ! if (i) { perror ("FIONREAD"); fprintf (stderr, *** ./src/gnuan.c Mon May 20 00:39:56 1996 --- ../gnuchess-4.0.pl77/./src/gnuan.c Wed Jul 1 11:43:09 1998 *************** *** 81,86 **** --- 81,87 ---- #include #ifndef AMIGADOS #include + #include #endif void TerminateSearch (int), Die (int); *************** *** 630,637 **** int i; #ifdef FIONREAD ! if (i = ioctl ((int) 0, FIONREAD, &nchar)) { perror ("FIONREAD"); fprintf (stderr, "You probably have a non-ANSI ; see README. %d %d %x\n", --- 631,650 ---- int i; #ifdef FIONREAD ! if ((i = ioctl ((int) 0, FIONREAD, &nchar)) && (errno == ENOSYS)) { + struct timeval no_delay = { 0, 0 }; + fd_set readfds; + FD_ZERO(&readfds); + FD_SET(0, &readfds); + if ((i = select (1, &readfds, NULL, NULL, &no_delay)) > 0) + { + nchar = i; + i = 0; + } + } + if (i) + { perror ("FIONREAD"); fprintf (stderr, "You probably have a non-ANSI ; see README. %d %d %x\n", *************** *** 687,693 **** int i; #ifdef FIONREAD ! if (i = ioctl ((int) 0, FIONREAD, &nchar)) { perror ("FIONREAD"); fprintf (stderr, --- 700,718 ---- int i; #ifdef FIONREAD ! if ((i = ioctl ((int) 0, FIONREAD, &nchar)) && (errno == ENOSYS)) ! { ! struct timeval no_delay = { 0, 0 }; ! fd_set readfds; ! FD_ZERO(&readfds); ! FD_SET(0, &readfds); ! if ((i = select (1, &readfds, NULL, NULL, &no_delay)) > 0) ! { ! nchar = i; ! i = 0; ! } ! } ! if (i) { perror ("FIONREAD"); fprintf (stderr,