--- 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;
