You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
577 B

  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"