diff options
author | dg <dg@FreeBSD.org> | 1994-01-07 11:10:42 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-01-07 11:10:42 +0000 |
commit | a9274b5d2eb1fd76fc79c3b5a8d762230f0e9222 (patch) | |
tree | 72354958917cddf82d04490731edadc4a54e840f /gnu/games/chess/Xchess/program.c | |
parent | d50dbe52e28ccee574f86f1a2a35becd1ee36126 (diff) | |
download | FreeBSD-src-a9274b5d2eb1fd76fc79c3b5a8d762230f0e9222.zip FreeBSD-src-a9274b5d2eb1fd76fc79c3b5a8d762230f0e9222.tar.gz |
From: swildner@channelz.GUN.de (Sascha Wildner)
What follows are the changes I made to make XChess compile. There are
still a couple of bugs left which maybe someone else will fix.
Diffstat (limited to 'gnu/games/chess/Xchess/program.c')
-rw-r--r-- | gnu/games/chess/Xchess/program.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/games/chess/Xchess/program.c b/gnu/games/chess/Xchess/program.c index 876f29c..59df70c 100644 --- a/gnu/games/chess/Xchess/program.c +++ b/gnu/games/chess/Xchess/program.c @@ -20,8 +20,8 @@ file named COPYING. Among other things, the copyright notice and this notice must be preserved on all copies. */ -/* RCS Info: $Revision: 1.2 $ on $Date: 86/11/23 17:18:10 $ - * $Source: /users/faustus/xchess/RCS/program.c,v $ +/* RCS Info: $Revision: 1.1.1.1 $ on $Date: 1993/06/12 14:41:13 $ + * $Source: /a/cvs/386BSD/src/gnu/chess/Xchess/program.c,v $ * Copyright (c) 1986 Wayne A. Christopher, U. C. Berkeley CAD Group * Permission is granted to do anything with this code except sell it * or remove this message. @@ -144,8 +144,12 @@ program_get() /* Do a poll... */ +#ifdef __386BSD__ + if (!(i = select(32, &rfd, &wfd, &xfd, ¬ime))) { +#else if (!(i = select(32, &rfd, &wfd, &xfd, ¬ime)) && !from->_cnt) { /* Bad stuff... */ +#endif if (debug) fprintf(stderr, "poll: nothing\n"); return (NULL); |