mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05: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:
parent
bebde69507
commit
a140e1d79f
@ -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() */
|
||||
|
Loading…
Reference in New Issue
Block a user