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