|
@ -1,17 +1,15 @@ |
|
|
Index: transmission-2.84/libtransmission/bitfield.c
|
|
|
|
|
|
===================================================================
|
|
|
|
|
|
--- transmission-2.84.orig/libtransmission/bitfield.c
|
|
|
|
|
|
+++ transmission-2.84/libtransmission/bitfield.c
|
|
|
|
|
|
|
|
|
--- a/libtransmission/bitfield.c
|
|
|
|
|
|
+++ b/libtransmission/bitfield.c
|
|
|
@@ -7,6 +7,8 @@
|
|
|
@@ -7,6 +7,8 @@
|
|
|
* $Id: bitfield.c 14302 2014-06-29 01:42:38Z jordan $ |
|
|
|
|
|
|
|
|
* $Id: bitfield.c 14646 2015-12-31 05:22:42Z mikedld $ |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
+#define __NEED_ssize_t
|
|
|
+#define __NEED_ssize_t
|
|
|
+
|
|
|
+
|
|
|
#include <assert.h> |
|
|
#include <assert.h> |
|
|
#include <stdlib.h> /* realloc () */ |
|
|
|
|
|
#include <string.h> /* memset */ |
|
|
#include <string.h> /* memset */ |
|
|
@@ -15,6 +17,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -14,6 +16,7 @@
|
|
|
#include "bitfield.h" |
|
|
#include "bitfield.h" |
|
|
#include "utils.h" /* tr_new0 () */ |
|
|
#include "utils.h" /* tr_new0 () */ |
|
|
|
|
|
|
|
@ -19,10 +17,8 @@ Index: transmission-2.84/libtransmission/bitfield.c |
|
|
const tr_bitfield TR_BITFIELD_INIT = { NULL, 0, 0, 0, false, false }; |
|
|
const tr_bitfield TR_BITFIELD_INIT = { NULL, 0, 0, 0, false, false }; |
|
|
|
|
|
|
|
|
/**** |
|
|
/**** |
|
|
Index: transmission-2.84/libtransmission/fdlimit.h
|
|
|
|
|
|
===================================================================
|
|
|
|
|
|
--- transmission-2.84.orig/libtransmission/fdlimit.h
|
|
|
|
|
|
+++ transmission-2.84/libtransmission/fdlimit.h
|
|
|
|
|
|
|
|
|
--- a/libtransmission/fdlimit.h
|
|
|
|
|
|
+++ b/libtransmission/fdlimit.h
|
|
|
@@ -11,6 +11,8 @@
|
|
|
@@ -11,6 +11,8 @@
|
|
|
#error only libtransmission should #include this header. |
|
|
#error only libtransmission should #include this header. |
|
|
#endif |
|
|
#endif |
|
@ -30,5 +26,5 @@ Index: transmission-2.84/libtransmission/fdlimit.h |
|
|
+#define __NEED_off_t
|
|
|
+#define __NEED_off_t
|
|
|
+
|
|
|
+
|
|
|
#include "transmission.h" |
|
|
#include "transmission.h" |
|
|
|
|
|
#include "file.h" |
|
|
#include "net.h" |
|
|
#include "net.h" |
|
|
|
|
|
|