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
630 B

  1. --- a/libtransmission/bitfield.c
  2. +++ b/libtransmission/bitfield.c
  3. @@ -7,6 +7,8 @@
  4. * $Id: bitfield.c 14646 2015-12-31 05:22:42Z mikedld $
  5. */
  6. +#define __NEED_ssize_t
  7. +
  8. #include <assert.h>
  9. #include <string.h> /* memset */
  10. @@ -14,6 +16,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. @@ -11,6 +11,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"