From f02a7996b96c646df6d210347e26a501a136b44d Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 19 Jul 2004 15:39:38 +0000 Subject: [PATCH] win32-fd_set-20040719 Make sure that we do not alter the FD_SETSIZE on Windows. On Windows this is an array of FD_SETSIZE. FD_SETSIZE does not define the maximum socket handle value. --- src/rx/rx_globals.c | 2 ++ src/rx/rx_lwp.c | 2 ++ src/vol/fssync.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/rx/rx_globals.c b/src/rx/rx_globals.c index 1dacd68df..a18982018 100644 --- a/src/rx/rx_globals.c +++ b/src/rx/rx_globals.c @@ -14,7 +14,9 @@ * Its value should be as large as the maximum file descriptor limit we * are likely to run into on any platform. Right now, that is 65536 * which is the default hard fd limit on Solaris 9 */ +#ifndef _WIN32 #define FD_SETSIZE 65536 +#endif #include #ifdef KERNEL diff --git a/src/rx/rx_lwp.c b/src/rx/rx_lwp.c index 9aa4ffc3f..b40ed1ea8 100644 --- a/src/rx/rx_lwp.c +++ b/src/rx/rx_lwp.c @@ -14,7 +14,9 @@ * Its value should be as large as the maximum file descriptor limit we * are likely to run into on any platform. Right now, that is 65536 * which is the default hard fd limit on Solaris 9 */ +#ifndef _WIN32 #define FD_SETSIZE 65536 +#endif #include #include diff --git a/src/vol/fssync.c b/src/vol/fssync.c index a4a6d15e2..5fb1f61b8 100644 --- a/src/vol/fssync.c +++ b/src/vol/fssync.c @@ -42,7 +42,9 @@ static int newVLDB = 1; * Its value should be as large as the maximum file descriptor limit we * are likely to run into on any platform. Right now, that is 65536 * which is the default hard fd limit on Solaris 9 */ +#ifndef _WIN32 #define FD_SETSIZE 65536 +#endif #include #include -- 2.39.5