mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
399d9512d2
commit
e109b9acbc
3 changed files with 5 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue