summarylogtreecommitdiffstats
path: root/utp-debug.patch
diff options
context:
space:
mode:
authorredfish2018-01-27 21:24:27 -0500
committerredfish2018-01-27 21:25:31 -0500
commitdb9c38cb7b33a48e400cc90de601f59c36e6e1df (patch)
tree3d95410e76d0ed0ac86debc0591ba284f8b0d5a0 /utp-debug.patch
parent176c239f92c2182a4c9192fe374e0d459c84e54c (diff)
downloadaur-db9c38cb7b33a48e400cc90de601f59c36e6e1df.tar.gz
patch to fix compile error in utp in debug build
Diffstat (limited to 'utp-debug.patch')
-rw-r--r--utp-debug.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/utp-debug.patch b/utp-debug.patch
new file mode 100644
index 000000000000..aeb097648f1d
--- /dev/null
+++ b/utp-debug.patch
@@ -0,0 +1,24 @@
+diff --git a/third-party/libutp/utp.h b/third-party/libutp/utp.h
+index 0086d4c..b0f6e5b 100644
+--- a/third-party/libutp/utp.h
++++ b/third-party/libutp/utp.h
+@@ -130,17 +130,17 @@ void UTP_GetDelays(struct UTPSocket *socket, int32 *ours, int32 *theirs, uint32
+
+ size_t UTP_GetPacketSize(struct UTPSocket *socket);
+
+ #ifdef _DEBUG
+-struct UTPStats {
++typedef struct UTPStats {
+ uint64 _nbytes_recv; // total bytes received
+ uint64 _nbytes_xmit; // total bytes transmitted
+ uint32 _rexmit; // retransmit counter
+ uint32 _fastrexmit; // fast retransmit counter
+ uint32 _nxmit; // transmit counter
+ uint32 _nrecv; // receive counter (total)
+ uint32 _nduprecv; // duplicate receive counter
+-};
++} UTPStats;
+
+ // Get stats for UTP socket
+ void UTP_GetStats(struct UTPSocket *socket, UTPStats *stats);
+ #endif