Skip to content
Snippets Groups Projects
Verified Commit 2757ba2c authored by alice's avatar alice
Browse files

community/loudmouth: fix usage of asyncns_freeaddrinfo

previously, this was defined only in the corresponding .c file.
but usage of freeaddrinfo was in a different .c file, so it was calling
musl's default freeaddrinfo on a asyncns_getaddrinfo-acquired addrinfo,
which caused a segfault
parent f2e86b62
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=loudmouth pkgname=loudmouth
pkgver=1.5.4 pkgver=1.5.4
pkgrel=0 pkgrel=1
pkgdesc="A lightweight Jabber client library" pkgdesc="A lightweight Jabber client library"
url="http://groups.google.com/group/loudmouth-dev" url="http://groups.google.com/group/loudmouth-dev"
arch="all" arch="all"
...@@ -10,7 +10,9 @@ license="LGPL-2.0-or-later" ...@@ -10,7 +10,9 @@ license="LGPL-2.0-or-later"
depends_dev="pkgconfig gnutls-dev libidn-dev libasyncns-dev check-dev autoconf" depends_dev="pkgconfig gnutls-dev libidn-dev libasyncns-dev check-dev autoconf"
makedepends="$depends_dev glib-dev" makedepends="$depends_dev glib-dev"
subpackages="$pkgname-dev" subpackages="$pkgname-dev"
source="https://mcabber.com/files/loudmouth/loudmouth-$pkgver.tar.bz2" source="https://mcabber.com/files/loudmouth/loudmouth-$pkgver.tar.bz2
fix-freeaddrinfo.patch
"
prepare() { prepare() {
default_prepare default_prepare
...@@ -41,4 +43,5 @@ package() { ...@@ -41,4 +43,5 @@ package() {
sha512sums=" sha512sums="
49a08f0130b9ee56f07586d244504c81242723865a136b03e1049f32b1aa1e6c49e9b76b38f0cfb812ef4c66f73b7d83914a58e9a93e0496207e06c2b5efa9d8 loudmouth-1.5.4.tar.bz2 49a08f0130b9ee56f07586d244504c81242723865a136b03e1049f32b1aa1e6c49e9b76b38f0cfb812ef4c66f73b7d83914a58e9a93e0496207e06c2b5efa9d8 loudmouth-1.5.4.tar.bz2
935c2534c9b895df58da20919e7d50f56bedc83289141d82d1d31dba506eafd16282e9a18b30848701cbd94340f5c0e0f37af229657a2b3d5ea38d582352cbaa fix-freeaddrinfo.patch
" "
--- a/loudmouth/lm-asyncns-resolver.h
+++ b/loudmouth/lm-asyncns-resolver.h
@@ -20,6 +20,11 @@
#define __LM_ASYNCNS_RESOLVER_H__
#include <glib-object.h>
+#include <config.h>
+
+#ifdef HAVE_ASYNCNS
+#define freeaddrinfo(x) asyncns_freeaddrinfo(x)
+#endif
#include "lm-resolver.h"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment