pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/gtk-gnutella net/gtk-gnutella: avoid naming collis...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ea71a16604c6
branches:  trunk
changeset: 385537:ea71a16604c6
user:      he <he%pkgsrc.org@localhost>
date:      Sun Sep 18 20:04:30 2022 +0000

description:
net/gtk-gnutella: avoid naming collision on NetBSD/powerpc.

Avoid collision with powerpc/frame.h's struct callframe.

diffstat:

 net/gtk-gnutella/distinfo                         |   3 ++-
 net/gtk-gnutella/patches/patch-src_lib_memusage.c |  20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 3da25c851b0d -r ea71a16604c6 net/gtk-gnutella/distinfo
--- a/net/gtk-gnutella/distinfo Sun Sep 18 20:02:35 2022 +0000
+++ b/net/gtk-gnutella/distinfo Sun Sep 18 20:04:30 2022 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.34 2021/10/26 11:05:42 nia Exp $
+$NetBSD: distinfo,v 1.35 2022/09/18 20:04:30 he Exp $
 
 BLAKE2s (gtk-gnutella-1.1.11.tar.bz2) = c8df89d48086fdcdab21c7e2f8a87fe27c51ca10f6dbbd612bc14cdf02a3acb3
 SHA512 (gtk-gnutella-1.1.11.tar.bz2) = 87d2d66b555180c0db7c360106377133b9e1f8ad8d28fc0f9a38498f3b4502a817650f9683cf92919b7d3a1b3602f7136143d2f1c920e10727576c703e233d07
 Size (gtk-gnutella-1.1.11.tar.bz2) = 19966423 bytes
 SHA1 (patch-Configure) = 926736a79a7bc469810f4887b5d0cecfedbac201
 SHA1 (patch-config__h.SH) = 2ed9d100cc044e10f2633a614cfc4100edc4cc02
+SHA1 (patch-src_lib_memusage.c) = db65ae1b7d43326f8b8eacdc95705deba0a94b5d
 SHA1 (patch-src_lib_pow2.h) = f8a36d58f84ef782535e363df6144bbfc766013e
diff -r 3da25c851b0d -r ea71a16604c6 net/gtk-gnutella/patches/patch-src_lib_memusage.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/gtk-gnutella/patches/patch-src_lib_memusage.c Sun Sep 18 20:04:30 2022 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_lib_memusage.c,v 1.1 2022/09/18 20:04:30 he Exp $
+
+Avoid naming collision with powerpc/frame.h definition of callframe.
+
+--- src/lib/memusage.c.orig    2016-11-11 14:33:11.000000000 +0000
++++ src/lib/memusage.c
+@@ -535,11 +535,12 @@ memusage_set_stack_accounting(memusage_t
+       MEMUSAGE_THREAD_UNLOCK(mu);
+ }
+ 
+-struct callframe {
++struct my_callframe {
+       size_t calls;
+       const struct stackatom *frame;
+       const struct memusage_counter *mc;
+ };
++#define callframe my_callframe
+ 
+ /**
+  * qsort() callback for sorting callframe items by decreasing call amount.



Home | Main Index | Thread Index | Old Index