aboutsummaryrefslogtreecommitdiff
path: root/src/compat
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-08-08 16:23:14 +0000
committerMike Buland <eichlan@xagasoft.com>2012-08-08 16:23:14 +0000
commit897537e7e9388aa839dec60a53fe2343092a079f (patch)
tree9edec397dc647444631a2c8ab464c5cb604e4c55 /src/compat
parent8fe2c8de27ea675f6fe10e7e1573ab15e40dbc1b (diff)
downloadlibbu++-897537e7e9388aa839dec60a53fe2343092a079f.tar.gz
libbu++-897537e7e9388aa839dec60a53fe2343092a079f.tar.bz2
libbu++-897537e7e9388aa839dec60a53fe2343092a079f.tar.xz
libbu++-897537e7e9388aa839dec60a53fe2343092a079f.zip
Had to make FD_SETSIZE much, much larger. It looks like the way to go in the
future is using overlapped I/O in windows, and who knows in linux. I believe the select method is always a good fallback, but apparently linux doesn't support posix aio (asynchronous i/o) in the kernel, it emulates it with threads, so who knows what the right choice is right now.
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/win32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/win32.h b/src/compat/win32.h
index c0e7520..512e6d3 100644
--- a/src/compat/win32.h
+++ b/src/compat/win32.h
@@ -13,7 +13,7 @@
13#ifdef __cplusplus 13#ifdef __cplusplus
14extern "C" 14extern "C"
15{ 15{
16#define FD_SETSIZE 1024 16#define FD_SETSIZE (4096*2)
17#include <Winsock2.h> 17#include <Winsock2.h>
18#include <ws2tcpip.h> 18#include <ws2tcpip.h>
19} 19}