summaryrefslogtreecommitdiff
path: root/pkg/transmission/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2025-04-28 13:15:20 -0700
committerMichael Forney <mforney@mforney.org>2025-04-28 13:16:39 -0700
commiteb314364eac84a729271dbba591030c1684600a8 (patch)
treeb0f2809c7f9a5e24910d780f1067dcb048a97b15 /pkg/transmission/patch
parentae0c48281c5e9b096ba612c01af8dbccda6d2df2 (diff)
transmission: Fix build with gcc 15.1.0
Use -isystem for the third-party includes. We want our libutp to come first. Add patch to fix utp_on_overhead type to match our libutp branch (C99 bool).
Diffstat (limited to 'pkg/transmission/patch')
-rw-r--r--pkg/transmission/patch/0003-Fix-type-signature-of-utp_on_overhead.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkg/transmission/patch/0003-Fix-type-signature-of-utp_on_overhead.patch b/pkg/transmission/patch/0003-Fix-type-signature-of-utp_on_overhead.patch
new file mode 100644
index 00000000..8044daaf
--- /dev/null
+++ b/pkg/transmission/patch/0003-Fix-type-signature-of-utp_on_overhead.patch
@@ -0,0 +1,35 @@
+From 6a142118edf4a31922568bf7696615e63c71c49e Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Mon, 28 Apr 2025 13:14:22 -0700
+Subject: [PATCH] Fix type signature of utp_on_overhead
+
+Our branch of libutp uses standard C99 types.
+---
+ libtransmission/peer-io.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/libtransmission/peer-io.c b/libtransmission/peer-io.c
+index cbdc85a2f..49e7e313d 100644
+--- a/libtransmission/peer-io.c
++++ b/libtransmission/peer-io.c
+@@ -554,7 +554,7 @@ static void utp_on_error(void* closure, int errcode)
+ }
+ }
+
+-static void utp_on_overhead(void* closure, uint8_t /* bool */ send, size_t count, int type UNUSED)
++static void utp_on_overhead(void* closure, bool send, size_t count, int type UNUSED)
+ {
+ tr_peerIo* io = closure;
+
+@@ -606,7 +606,7 @@ static void dummy_on_error(void* closure UNUSED, int errcode UNUSED)
+ {
+ }
+
+-static void dummy_on_overhead(void* closure UNUSED, uint8_t /* bool */ send UNUSED, size_t count UNUSED, int type UNUSED)
++static void dummy_on_overhead(void* closure UNUSED, bool send UNUSED, size_t count UNUSED, int type UNUSED)
+ {
+ }
+
+--
+2.45.2
+