Fix thread-type rotation for Win95 SeaMonkey_M4_BASE
authorlarryh%netscape.com
Fri, 09 Apr 1999 16:38:11 +0000
changeset 544 2a891ca83dbcb7ec0bbb7d07b5f6789807914fd1
parent 536 c91844c163c65ee2d1da652e2dadc804ab711480
child 545 326008abf3ce4a42fb0cbf49d5a4c393312297d9
child 546 ad2999ee978165501167598211728c6d4503b0d8
push idunknown
push userunknown
push dateunknown
Fix thread-type rotation for Win95
pr/tests/socket.c
pr/tests/testfile.c
--- a/pr/tests/socket.c
+++ b/pr/tests/socket.c
@@ -257,17 +257,17 @@ PRThread* create_new_thread(PRThreadType
 							PRThreadPriority priority,
 							PRThreadScope scope,
 							PRThreadState state,
 							PRUint32 stackSize, PRInt32 index)
 {
 PRInt32 native_thread = 0;
 
 	PR_ASSERT(state == PR_UNJOINABLE_THREAD);
-#if (defined(_PR_PTHREADS) && !defined(_PR_DCETHREADS)) || defined(WINNT)
+#if (defined(_PR_PTHREADS) && !defined(_PR_DCETHREADS)) || defined(WINNT) || defined(WIN95)
 	switch(index %  4) {
 		case 0:
 			scope = (PR_LOCAL_THREAD);
 			break;
 		case 1:
 			scope = (PR_GLOBAL_THREAD);
 			break;
 		case 2:
--- a/pr/tests/testfile.c
+++ b/pr/tests/testfile.c
@@ -106,17 +106,17 @@ PRThread* create_new_thread(PRThreadType
 							PRThreadPriority priority,
 							PRThreadScope scope,
 							PRThreadState state,
 							PRUint32 stackSize, PRInt32 index)
 {
 PRInt32 native_thread = 0;
 
 	PR_ASSERT(state == PR_UNJOINABLE_THREAD);
-#if (defined(_PR_PTHREADS) && !defined(_PR_DCETHREADS)) || defined(WINNT)
+#if (defined(_PR_PTHREADS) && !defined(_PR_DCETHREADS)) || defined(WINNT) || defined(WIN95)
 	switch(index %  4) {
 		case 0:
 			scope = (PR_LOCAL_THREAD);
 			break;
 		case 1:
 			scope = (PR_GLOBAL_THREAD);
 			break;
 		case 2: