Workaround for some versions of egcs that can't cope with the FD_ZERO

declaration on Redhat 5.0 GNU/Linux.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3740 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-02-17 14:31:13 +00:00
parent ee2cbc2ecf
commit 3ce50a92fa
3 changed files with 5 additions and 13 deletions

View file

@ -72,10 +72,6 @@
#include <limits.h>
#include <string.h> /* for memset() */
/* On some systems FD_ZERO is a macro that uses bzero().
Just define it to use memset(). */
#define bzero(PTR, LEN) memset (PTR, 0, LEN)
static int debug_run_loop = 0;
/*
@ -1089,8 +1085,8 @@ static int debug_run_loop = 0;
Initialize the set of FDS we'll pass to select(), and create
an empty map for keeping track of which object is associated
with which file descriptor. */
FD_ZERO (&fds);
FD_ZERO (&write_fds);
memset(&fds, '\0', sizeof(fds));
memset(&write_fds, '\0', sizeof(write_fds));
rfd_2_object = NSCreateMapTable (NSIntMapKeyCallBacks,
NSObjectMapValueCallBacks, 0);
wfd_2_object = NSCreateMapTable (NSIntMapKeyCallBacks,