summaryrefslogtreecommitdiff
path: root/packaging/Caldera/OpenServer/samba-2.2-osr5.patch
blob: fb71d9298b44c214d7a3b1518da0fcb4a950ce60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- utils/torture.c.00	Fri Mar 30 13:53:26 2001
+++ utils/torture.c	Fri Apr 13 15:06:04 2001
@@ -2703,7 +2703,11 @@
 
 	dbf = stdout;
 
+#if defined(_SCO_DS) /* SCO OpenServer */
+    setvbuf(stdout, NULL, _IONBF, 0);
+#else
 	setbuffer(stdout, NULL, 0);
+#endif
 
 	charset_initialise();
 
--- utils/locktest.c.00	Fri Sep 29 13:18:14 2000
+++ utils/locktest.c	Fri Apr 13 17:54:11 2001
@@ -384,8 +384,12 @@
 			recorded[n].conn = random() % NCONNECTIONS;
 			recorded[n].f = random() % NFILES;
 			recorded[n].start = LOCKBASE + ((unsigned)random() % (LOCKRANGE-1));
+#if defined(_SCO_DS) /* OpenServer */
+			recorded[n].len = 1;
+#else
 			recorded[n].len = 1 + 
 				random() % (LOCKRANGE-(recorded[n].start-LOCKBASE));
+#endif
 			recorded[n].start *= RANGE_MULTIPLE;
 			recorded[n].len *= RANGE_MULTIPLE;
 			recorded[n].r1 = random() % 100;