loudmouth/lm-asyncns-resolver.h
changeset 744 4ebe32453682
parent 690 7ccf2113ec5f
--- a/loudmouth/lm-asyncns-resolver.h	Sat Jul 10 09:37:34 2021 +0200
+++ b/loudmouth/lm-asyncns-resolver.h	Thu Apr 21 20:23:32 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