aboutsummaryrefslogtreecommitdiff
path: root/irc/irssi-xmpp/files/patch-src_fe-common_xmpp-completion.c
diff options
context:
space:
mode:
authorThibault Jouan <tj+freebsd_ports@a13.fr>2022-08-04 06:08:46 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2022-08-05 05:31:25 +0000
commit079567cc48874444ea2cad0b91b00040e7a1ddc9 (patch)
tree625818bc6b59b03cde6cd2acda8348030e299d94 /irc/irssi-xmpp/files/patch-src_fe-common_xmpp-completion.c
parent50964af9333cb62250c52ef6849a47b7dd5f7baa (diff)
downloadports-079567cc48874444ea2cad0b91b00040e7a1ddc9.tar.gz
ports-079567cc48874444ea2cad0b91b00040e7a1ddc9.zip
irc/irssi-xmpp: Fix build with irssi 1.4
PR: 265571 Reported by: tj+freebsd_ports@a13.fr
Diffstat (limited to 'irc/irssi-xmpp/files/patch-src_fe-common_xmpp-completion.c')
-rw-r--r--irc/irssi-xmpp/files/patch-src_fe-common_xmpp-completion.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/irc/irssi-xmpp/files/patch-src_fe-common_xmpp-completion.c b/irc/irssi-xmpp/files/patch-src_fe-common_xmpp-completion.c
new file mode 100644
index 000000000000..5bbc55c55cff
--- /dev/null
+++ b/irc/irssi-xmpp/files/patch-src_fe-common_xmpp-completion.c
@@ -0,0 +1,17 @@
+Fix module loading:
+
+ Irssi: Error loading module xmpp/fe:
+ /usr/local/lib/irssi/modules/libfe_xmpp.so: Undefined symbol
+ "glist_find_string"
+
+--- src/fe-common/xmpp-completion.c.orig 2022-08-02 10:48:55 UTC
++++ src/fe-common/xmpp-completion.c
+@@ -287,7 +287,7 @@ get_channels(XMPP_SERVER_REC *server, const char *word
+ chat_type, XMPP_PROTOCOL_NAME)
+ || *channel_setup->name != '#')
+ && g_ascii_strncasecmp(channel_setup->name, word, len) == 0
+- && glist_find_string(list, channel_setup->name) == NULL)
++ && i_list_find_string(list, channel_setup->name) == NULL)
+ list = g_list_append(list,
+ g_strdup(channel_setup->name));
+ }