]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
win32-fd_set-20040719
authorJeffrey Altman <jaltman@mit.edu>
Mon, 19 Jul 2004 15:39:38 +0000 (15:39 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 19 Jul 2004 15:39:38 +0000 (15:39 +0000)
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
src/rx/rx_lwp.c
src/vol/fssync.c

index 1dacd68dfaa6cb8decb55da67eec16e84b56fee1..a18982018b6353e354900c56131ec1ae95a4a4d3 100644 (file)
@@ -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 <afsconfig.h>
 #ifdef KERNEL
index 9aa4ffc3fbb1464426613ef7a1a58a9533245166..b40ed1ea8f6367ef7a8eb262a434309603464509 100644 (file)
@@ -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 <afsconfig.h>
 #include <afs/param.h>
index a4a6d15e2a46fa73a29d54d4bcbd6d409c9c0a9e..5fb1f61b85471210314378b0ca4a686d917e1d60 100644 (file)
@@ -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 <afsconfig.h>
 #include <afs/param.h>