From 2655269911d5b0cbdbc5a20cb76139078d36f9f4 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 3 Dec 2010 01:12:50 +0100 Subject: [PATCH] Make select work on >64 FDs on windows --- wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wscript b/wscript index 808968f920d..30cae1be5bd 100644 --- a/wscript +++ b/wscript @@ -362,6 +362,10 @@ def configure(conf): conf.env.append_value('CPPFLAGS', '-D_FILE_OFFSET_BITS=64') conf.env.append_value('CPPFLAGS', '-DEV_MULTIPLICITY=0') + # Makes select on windows support more than 64 FDs + if sys.platform.startswith("win32"): + conf.env.append_value('CPPFLAGS', '-DFD_SETSIZE=1024'); + ## needed for node_file.cc fdatasync ## Strangely on OSX 10.6 the g++ doesn't see fdatasync but gcc does? code = """