View | Details | Raw Unified | Return to bug 239986 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	nspr
4
PORTNAME=	nspr
5
DISTVERSION=	4.22
5
DISTVERSION=	4.22
6
PORTREVISION=	1
6
CATEGORIES=	devel
7
CATEGORIES=	devel
7
MASTER_SITES=	MOZILLA/${PORTNAME}/releases/v${PORTVERSION}/src
8
MASTER_SITES=	MOZILLA/${PORTNAME}/releases/v${PORTVERSION}/src
8
9
(-)files/patch-pr_tests_attach.c (+11 lines)
Line 0 Link Here
1
--- pr/tests/attach.c.orig	2019-08-20 11:59:48 UTC
2
+++ pr/tests/attach.c
3
@@ -266,7 +266,7 @@ int main(int argc, char **argv)
4
 	    "either this platform does not have native threads or the\n"
5
 	    "test needs to be written for this platform.\n");
6
 	goto exit_now;
7
-
8
+#endif
9
 exit_now:
10
    if(failed_already)	
11
 		return 1;
(-)files/patch-pr_tests_nonblock.c (+28 lines)
Line 0 Link Here
1
--- pr/tests/nonblock.c.orig	2019-08-20 12:01:46 UTC
2
+++ pr/tests/nonblock.c
3
@@ -23,6 +23,25 @@
4
 ** Make win16 unit_time interval 300 milliseconds, others get 100
5
 */
6
 #define UNIT_TIME  200       /* unit time in milliseconds */
7
+#elif defined(SYMBIAN)
8
+#define UNIT_TIME  5000      /* unit time in milliseconds */
9
+#else
10
+#define UNIT_TIME  100       /* unit time in milliseconds */
11
+#endif
12
+#define CHUNK_SIZE 10
13
+#undef USE_PR_SELECT         /* If defined, we use PR_Select.
14
+                              * If not defined, use PR_Poll instead. */
15
+
16
+#if defined(USE_PR_SELECT)
17
+#include "pprio.h"
18
+#endif
19
+
20
+
21
+#if defined(WIN16)
22
+/*
23
+** Make win16 unit_time interval 300 milliseconds, others get 100
24
+*/
25
+#define UNIT_TIME  200       /* unit time in milliseconds */
26
 #define UNIT_TIME  100       /* unit time in milliseconds */
27
 #endif
28
 #define CHUNK_SIZE 10
(-)files/patch-pr_tests_stack.c (+22 lines)
Line 0 Link Here
1
--- pr/tests/stack.c.orig	2019-08-20 12:03:34 UTC
2
+++ pr/tests/stack.c
3
@@ -53,8 +53,8 @@ PRFileDesc  *errhandle;
4
 
5
 int main(int argc, char **argv)
6
 {
7
-#if defined(__WINS__))
8
-    PRInt32 rv, cnt, sum;
9
+#if defined(__WINS__)
10
+    PRInt32 cnt, sum;
11
 	DataRecord	*Item;
12
 	PRStack		*list1, *list2;
13
 	PRStackElem	*node;
14
@@ -209,7 +209,7 @@ int main(int argc, char **argv)
15
 static void stackop(void *thread_arg)
16
 {
17
     PRInt32 val, cnt, index, loops;
18
-	DataRecord	*Items, *Item;
19
+	DataRecord	*Items;
20
 	PRStack		*list1, *list2;
21
 	PRStackElem	*node;
22
 	stack_data *arg = (stack_data *) thread_arg;
(-)files/patch-pr_tests_testfile.c (+11 lines)
Line 0 Link Here
1
--- pr/tests/testfile.c.orig	2019-08-20 12:25:48 UTC
2
+++ pr/tests/testfile.c
3
@@ -78,7 +78,7 @@ char *TEST_DIR = "/tmp/testfile_dir";
4
 #endif
5
 char *FILE_NAME = "pr_testfile";
6
 char *HIDDEN_FILE_NAME = ".hidden_pr_testfile";
7
-#endif
8
+//#endif
9
 buffer *in_buf, *out_buf;
10
 char pathname[256], renamename[256];
11
 #ifdef WINCE
(-)files/patch-tests (-20 lines)
Lines 1883-1908 Link Here
1883
 	PR_smprintf_free(s);
1883
 	PR_smprintf_free(s);
1884
 	exit(-1);
1884
 	exit(-1);
1885
     }
1885
     }
1886
--- pr/tests/stack.c.orig	2019-08-19 14:12:12 UTC
1887
+++ pr/tests/stack.c
1888
@@ -54,7 +54,7 @@ PRFileDesc  *errhandle;
1889
 int main(int argc, char **argv)
1890
 {
1891
 #if defined(__WINS__))
1892
-    PRInt32 rv, cnt, sum;
1893
+    PRInt32 cnt, sum;
1894
 	DataRecord	*Item;
1895
 	PRStack		*list1, *list2;
1896
 	PRStackElem	*node;
1897
@@ -209,7 +209,7 @@ int main(int argc, char **argv)
1898
 static void stackop(void *thread_arg)
1899
 {
1900
     PRInt32 val, cnt, index, loops;
1901
-	DataRecord	*Items, *Item;
1902
+	DataRecord	*Items;
1903
 	PRStack		*list1, *list2;
1904
 	PRStackElem	*node;
1905
 	stack_data *arg = (stack_data *) thread_arg;
1906
--- pr/tests/suspend.c.orig	2019-08-19 14:12:12 UTC
1886
--- pr/tests/suspend.c.orig	2019-08-19 14:12:12 UTC
1907
+++ pr/tests/suspend.c
1887
+++ pr/tests/suspend.c
1908
@@ -21,14 +21,14 @@ void PR_CALLBACK
1888
@@ -21,14 +21,14 @@ void PR_CALLBACK

Return to bug 239986