Skip to content

Commit

Permalink
remove FD_SETSIZE redefinition /cc #333
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Jun 18, 2012
1 parent ba83488 commit 9163446
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/project.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ typedef int SOCKET;

#ifdef OS_WIN32
// 21Sep09: windows limits select() to 64 sockets by default, we increase it to 1024 here (before including winsock2.h)
#define FD_SETSIZE 1024
// 18Jun12: fd_setsize must be changed in the ruby binary (not in this extension). redefining it also causes segvs, see eventmachine/eventmachine#333
//#define FD_SETSIZE 1024

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
Expand Down

0 comments on commit 9163446

Please sign in to comment.