1
0

030-fix-musl-build.patch 577 B

123456789101112131415161718192021222324252627282930
  1. --- a/libtransmission/bitfield.c
  2. +++ b/libtransmission/bitfield.c
  3. @@ -6,6 +6,8 @@
  4. *
  5. */
  6. +#define __NEED_ssize_t
  7. +
  8. #include <assert.h>
  9. #include <string.h> /* memset */
  10. @@ -13,6 +15,7 @@
  11. #include "bitfield.h"
  12. #include "utils.h" /* tr_new0 () */
  13. +
  14. const tr_bitfield TR_BITFIELD_INIT = { NULL, 0, 0, 0, false, false };
  15. /****
  16. --- a/libtransmission/fdlimit.h
  17. +++ b/libtransmission/fdlimit.h
  18. @@ -10,6 +10,8 @@
  19. #error only libtransmission should #include this header.
  20. #endif
  21. +#define __NEED_off_t
  22. +
  23. #include "transmission.h"
  24. #include "file.h"
  25. #include "net.h"