Fix writefds init on Windows

This commit is contained in:
Howard Chu 2005-10-11 02:56:56 +00:00
parent 44e9209629
commit 9aa064434c

View file

@ -232,7 +232,9 @@ static struct slap_daemon {
#define SLAP_EVENT_INIT \
AC_MEMCPY( &readfds, &slap_daemon.sd_readers, sizeof(fd_set) ); \
if ( nwriters ) \
AC_MEMCPY( &writefds, &slap_daemon.sd_writers, sizeof(fd_set) )
AC_MEMCPY( &writefds, &slap_daemon.sd_writers, sizeof(fd_set) ); \
else \
FD_ZERO( &writefds )
#ifdef FD_SETSIZE
#define CHK_SETSIZE \