1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

Set FD_SETSIZE to 1024 on Mingw32.

The default value of FD_SETSIZE on Windows is 64,
but can be bigger if set before including winsock2.h
This commit is contained in:
witekfl 2012-05-25 17:54:46 +02:00
parent bebde69507
commit a140e1d79f

View File

@ -4,6 +4,12 @@
#include "config.h"
#endif
#ifdef HAVE_WS2TCPIP_H
/* On Windows the default value of FD_SETSIZE is 64,
* but can be set to any other value before including winsock2.h */
#define FD_SETSIZE 1024
#endif
#include <errno.h>
#include <signal.h>
#include <string.h> /* FreeBSD FD_ZERO() macro calls bzero() */