0001-musl.patch 678 B

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