From abc4abc914b3fdfee952bfab1a3a511c7e9e51d1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 25 Apr 2010 10:13:00 +0000 Subject: [PATCH] 2010-04-25 Tatsuhiro Tsujikawa Defined FD_SETSIZE 1024 for MinGW32. * src/a2netcompat.h --- ChangeLog | 5 +++++ src/a2netcompat.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 69e9e725..5bb0b8d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-25 Tatsuhiro Tsujikawa + + Defined FD_SETSIZE 1024 for MinGW32. + * src/a2netcompat.h + 2010-04-25 Tatsuhiro Tsujikawa Fixed compile error on the system which lacks poll() diff --git a/src/a2netcompat.h b/src/a2netcompat.h index c24e74ee..b89ea8b5 100644 --- a/src/a2netcompat.h +++ b/src/a2netcompat.h @@ -41,6 +41,9 @@ # define WINVER 0x501 # endif // !WINVER # ifdef HAVE_WINSOCK2_H +# ifndef FD_SETSIZE +# define FD_SETSIZE 1024 +# endif // !FD_SETSIZE # include # undef ERROR # endif // HAVE_WINSOCK2_H