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 1dacd68..a189820 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 9aa4ffc..b40ed1e 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 a4a6d15..5fb1f61 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>