summaryrefslogtreecommitdiff
path: root/Ports/stress-ng/patches/0010-serenity-Disable-lrand48-zlib-stress-it-is-not-imple.patch
blob: 7ddaab2ac57d326ca399e324d0d535f45344924e (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From 684f3f13ebc61278fd12de7261a759bf8af450a6 Mon Sep 17 00:00:00 2001
From: Brian Gianforcaro <b.gianfo@gmail.com>
Date: Mon, 27 Dec 2021 23:48:49 -0800
Subject: [PATCH 10/14] serenity: Disable lrand48 zlib stress, it is not
 implemented for Serenity

---
 stress-zlib.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/stress-zlib.c b/stress-zlib.c
index 68330bb..90b0c65 100644
--- a/stress-zlib.c
+++ b/stress-zlib.c
@@ -691,6 +691,7 @@ static void stress_rand_data_lfsr32(
 	}
 }
 
+#if !defined(__serenity__)
 /*
  *  stress_rand_data_lrand48()
  *	fills buffer with random data from lrand48
@@ -714,6 +715,7 @@ static void stress_rand_data_lrand48(
 	while (ptr < end)
 		*(ptr++) = lrand48();
 }
+#endif
 
 /*
  *  stress_rand_data_latin()
@@ -878,7 +880,9 @@ static const stress_zlib_rand_data_func rand_data_funcs[] = {
 	stress_rand_data_fixed,
 	stress_rand_data_gray,
 	stress_rand_data_latin,
+#if !defined(__serenity__)
 	stress_rand_data_lrand48,
+#endif
 	stress_rand_data_nybble,
 	stress_rand_data_objcode,
 	stress_rand_data_parity,
@@ -921,7 +925,9 @@ static const stress_zlib_rand_data_info_t zlib_rand_data_methods[] = {
 	{ "latin",	stress_rand_data_latin },
 	{ "logmap",	stress_rand_data_logmap },
 	{ "lfsr32",	stress_rand_data_lfsr32 },
+#if !defined(__serenity__)
 	{ "lrand48",	stress_rand_data_lrand48 },
+#endif
 	{ "morse",	stress_rand_data_morse },
 	{ "nybble",	stress_rand_data_nybble },
 	{ "objcode",	stress_rand_data_objcode },
-- 
2.32.0