diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2016-01-31 21:44:14 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-02-07 15:00:34 +0100 |
commit | cd051dad608a5018f035f2aadb95407ddb5b6992 (patch) | |
tree | e59f6a5cde054d7c3bdec340f5e9a10f886bf44b | |
parent | 3492c511bfe5c97a937375c5ebc222a3ec543dee (diff) | |
download | buildroot-cd051dad608a5018f035f2aadb95407ddb5b6992.tar.gz buildroot-cd051dad608a5018f035f2aadb95407ddb5b6992.zip |
package/wipe: fix musl build
The build error was not yet found by the autobuilders:
In file included from main.c:46:0:
rand.h:31:9: error: unknown type name ‘u_int32_t’
typedef u_int32_t u_rand_t;
^
<builtin>: recipe for target 'main.o' failed
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/wipe/0001-musl.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/wipe/0001-musl.patch b/package/wipe/0001-musl.patch new file mode 100644 index 0000000000..35b3af80ff --- /dev/null +++ b/package/wipe/0001-musl.patch @@ -0,0 +1,28 @@ +Fix musl build + +In file included from main.c:46:0: +rand.h:31:9: error: unknown type name ‘u_int32_t’ + typedef u_int32_t u_rand_t; + ^ +<builtin>: recipe for target 'main.o' failed + +Patch sent upstream: https://sourceforge.net/p/wipe/patches/4/ + +Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> + +diff -uNr wipe-2.3.1.org/rand.h wipe-2.3.1/rand.h +--- wipe-2.3.1.org/rand.h 2003-12-03 04:01:02.000000000 +0100 ++++ wipe-2.3.1/rand.h 2016-01-31 21:39:54.000000000 +0100 +@@ -22,10 +22,9 @@ + + #ifdef HAVE_STDINT_H + # include "stdint.h" +-#else +-# ifndef LINUX ++#endif ++#if !defined(u_int32_t) + # define u_int32_t uint32_t +-# endif + #endif + + typedef u_int32_t u_rand_t; |