diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-12 21:07:17 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-12 21:07:17 +0000 |
| commit | 3273cb5eee505944f0bcce6abf8d1a6d5ff14e9c (patch) | |
| tree | 08875df83630fe286c21876bac465b0eb0222287 /PC | |
| parent | 6fc1da15fec6ae8bd88e702f7ba83547a597047c (diff) | |
| download | cpython-git-3273cb5eee505944f0bcce6abf8d1a6d5ff14e9c.tar.gz | |
Backport r42314 which fixed Windows breakage when checking that socket
descriptors fit in fd_set.
Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Proposed by Tim Peters implemented by Martin von Loewis.
Diffstat (limited to 'PC')
| -rw-r--r-- | PC/pyconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 1979b7e023..793fbed1a4 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -562,4 +562,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ /* Define if you have the thread library (-lthread). */ /* #undef HAVE_LIBTHREAD */ + +/* WinSock does not use a bitmask in select, and uses + socket handles greater than FD_SETSIZE */ +#define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE + #endif /* !Py_CONFIG_H */ |
