Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!ucbcad!ucbvax!decvax!tektronix!tekgen!tekred!games-request From: games-request@tekred.UUCP Newsgroups: comp.sources.games Subject: v01i079: kriegspiel - A chess variant, Patch1 Message-ID: <1376@tekred.TEK.COM> Date: Mon, 6-Jul-87 13:20:37 EDT Article-I.D.: tekred.1376 Posted: Mon Jul 6 13:20:37 1987 Date-Received: Thu, 9-Jul-87 04:58:46 EDT Sender: billr@tekred.TEK.COM Lines: 89 Approved: billr@tekred.TEK.COM Submitted by: Steve SchochComp.sources.games: Volume 1, Issue 79 Archive-name: kriegspiel/Patch1 [This is an official patch from the author. -br] [After my game was posted, I got some bug reports about some stuff I used from 4.3 BSD that is not in 4.2 BSD, Ultrix, or Sun's OS. Here is a diff to make xks compile under 4.2.] *** movecycle.c.old Thu Jul 2 11:10:39 1987 --- movecycle.c Thu Jul 2 11:13:38 1987 *************** *** 7,13 **** #ifdef XKS movecycle() { ! fd_set readfds, fds; extern int sock; int n; --- 7,13 ---- #ifdef XKS movecycle() { ! auto int readfds, fds; extern int sock; int n; *************** *** 14,27 **** XSelectInput(window, ExposeWindow | ExposeRegion | ButtonPressed | ButtonReleased | LeaveWindow | LeftDownMotion | KeyPressed); ! FD_ZERO(&fds); ! FD_SET(dpyno(), &fds); ! FD_SET(sock, &fds); for(;;) { while (XPending()) handle_input(); readfds = fds; ! n = select(FD_SETSIZE, &readfds, 0, 0, 0); if (n < 0) { if (errno == EINTR) continue; --- 14,25 ---- XSelectInput(window, ExposeWindow | ExposeRegion | ButtonPressed | ButtonReleased | LeaveWindow | LeftDownMotion | KeyPressed); ! fds = 1<