xref: /OK3568_Linux_fs/buildroot/package/wipe/0001-musl.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Fix musl build
2
3In file included from main.c:46:0:
4rand.h:31:9: error: unknown type name ‘u_int32_t’
5 typedef u_int32_t u_rand_t;
6         ^
7<builtin>: recipe for target 'main.o' failed
8
9Patch sent upstream: https://sourceforge.net/p/wipe/patches/4/
10
11Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
12
13diff -uNr wipe-2.3.1.org/rand.h wipe-2.3.1/rand.h
14--- wipe-2.3.1.org/rand.h	2003-12-03 04:01:02.000000000 +0100
15+++ wipe-2.3.1/rand.h	2016-01-31 21:39:54.000000000 +0100
16@@ -22,10 +22,9 @@
17
18 #ifdef HAVE_STDINT_H
19 # include "stdint.h"
20-#else
21-# ifndef LINUX
22+#endif
23+#if !defined(u_int32_t)
24 #  define u_int32_t uint32_t
25-# endif
26 #endif
27
28 typedef u_int32_t u_rand_t;
29