Bugzilla bug #45683: define FD_SETSIZE to be 4096. This patch is NSPRPUB_CLIENT_BRANCH SeaMonkey_M17_BASE SeaMonkey_M17_RELEASE
authorwtc%netscape.com
Mon, 17 Jul 2000 22:47:05 +0000
branchNSPRPUB_CLIENT_BRANCH
changeset 1483 cc3e03be6a97e030b8c6fe605378768531015edf
parent 1477 3284cb210e102c547134ea03e941d04c9495cf01
child 1484 1f25ba11e890cfec37e9fbdfd4db2366c8d1ccac
child 1502 ca2390df9c3d070cbf428d9b0d27af2493fa7e2f
push idunknown
push userunknown
push dateunknown
bugs45683
Bugzilla bug #45683: define FD_SETSIZE to be 4096. This patch is contributed by Jerry Kirk <Jerry.Kirk@nexwarecorp.com>. (NSPRPUB_CLIENT_BRANCH)
pr/include/md/_nto.h
--- a/pr/include/md/_nto.h
+++ b/pr/include/md/_nto.h
@@ -41,16 +41,19 @@
 #define _PR_HAVE_SOCKADDR_LEN
 #undef  HAVE_BSD_FLOCK
 #define HAVE_FCNTL_FILE_LOCKING
 #define _PR_NO_LARGE_FILES
 #define _PR_STAT_HAS_ONLY_ST_ATIME
 #define PR_HAVE_POSIX_NAMED_SHARED_MEMORY
 #define _PR_HAVE_POSIX_SEMAPHORES
 
+#define FD_SETSIZE	4096
+#include <sys/time.h>
+#include <sys/types.h>
 #include <sys/select.h>
 
 #undef  HAVE_STACK_GROWING_UP
 #define	HAVE_DLL
 #define	USE_DLFCN
 #define NEED_STRFTIME_LOCK
 #define NEED_TIME_R
 #define _PR_NEED_STRCASECMP
@@ -185,14 +188,11 @@ struct _MDCPU {
 #define	_MD_SUSPEND_THREAD(thread)
 #define	_MD_RESUME_THREAD(thread)
 #define _MD_CLEAN_THREAD(_thread)
 
 /*
 ** We wrapped the select() call.  _MD_SELECT refers to the built-in,
 ** unwrapped version.
 */
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/select.h>
 #define _MD_SELECT		select
 
 #endif /* nspr_nto_defs_h___ */