summaryrefslogtreecommitdiffstats
path: root/recipes-security/samhain/files/c99_dnmalloc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/samhain/files/c99_dnmalloc.patch')
-rw-r--r--recipes-security/samhain/files/c99_dnmalloc.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-security/samhain/files/c99_dnmalloc.patch b/recipes-security/samhain/files/c99_dnmalloc.patch
new file mode 100644
index 0000000..2216564
--- /dev/null
+++ b/recipes-security/samhain/files/c99_dnmalloc.patch
@@ -0,0 +1,18 @@
1samhain: musl build fix c99
2
3Upstream-Status: Submitted
4Signed-off-by: Armin Kuster <akuster@mvista.com>
5
6Index: samhain-4.2.0/src/dnmalloc.c
7===================================================================
8--- samhain-4.2.0.orig/src/dnmalloc.c
9+++ samhain-4.2.0/src/dnmalloc.c
10@@ -5524,7 +5524,7 @@ arc4_stir(void)
11 struct {
12 struct timeval tv1;
13 struct timeval tv2;
14- u_int rnd[(128 - 2*sizeof(struct timeval)) / sizeof(u_int)];
15+ unsigned char rnd[(128 - 2*sizeof(struct timeval)) / sizeof(unsigned char)];
16 } rdat;
17 #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
18 ssize_t sz = 0;