Merge pull request #46 from nekopsykose/fix-asyncns-addrinfo default tip master remote/master
authorMikael Berthe <mikael@lilotux.net>
Mon, 13 Jun 2022 18:01:27 +0200
changeset 745 7785b42dd7bc
parent 743 9098ee1972df (current diff)
parent 744 4ebe32453682 (diff)
Merge pull request #46 from nekopsykose/fix-asyncns-addrinfo fix macro define for freeaddrinfo with asyncns committer: GitHub <noreply@github.com>
--- a/loudmouth/lm-asyncns-resolver.c	Sat Jul 10 09:37:34 2021 +0200
+++ b/loudmouth/lm-asyncns-resolver.c	Mon Jun 13 18:01:27 2022 +0200
@@ -21,7 +21,6 @@
 #include <string.h>
 #ifdef HAVE_ASYNCNS
 #include <asyncns.h>
-#define freeaddrinfo(x) asyncns_freeaddrinfo(x)
 
 /* Needed on Mac OS X */
 #if HAVE_ARPA_NAMESER_COMPAT_H
--- a/loudmouth/lm-asyncns-resolver.h	Sat Jul 10 09:37:34 2021 +0200
+++ b/loudmouth/lm-asyncns-resolver.h	Mon Jun 13 18:01:27 2022 +0200
@@ -19,8 +19,14 @@
 #ifndef __LM_ASYNCNS_RESOLVER_H__
 #define __LM_ASYNCNS_RESOLVER_H__
 
+#include <config.h>
+
 #include <glib-object.h>
 
+#ifdef HAVE_ASYNCNS
+#define freeaddrinfo(x) asyncns_freeaddrinfo(x)
+#endif
+
 #include "lm-resolver.h"
 
 G_BEGIN_DECLS