From: Jeffrey Altman Date: Mon, 19 Jul 2004 15:39:38 +0000 (+0000) Subject: win32-fd_set-20040719 X-Git-Tag: openafs-devel-1_3_66~35 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f02a7996b96c646df6d210347e26a501a136b44d;p=packages%2Fo%2Fopenafs.git 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. --- 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