Module: sip-router
Branch: master
Commit: 5b96c7e6ec3cfd8354a6a257a87144196d57fec3
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5b96c7e…
Author: Marius Zbihlei <mariuszbi(a)gmail.com>
Committer: Marius Zbihlei <mariuszbi(a)gmail.com>
Date: Fri Apr 26 09:56:26 2013 +0100
core: fixed compilation on Solaris, due to missing gethostbyname2
TODO: provide a wrapper over dnssec for getipnode...() for Solaris
---
dns_func.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dns_func.c b/dns_func.c
index e744688..da2ce7b 100644
--- a/dns_func.c
+++ b/dns_func.c
@@ -38,7 +38,11 @@ struct dns_func_t dns_func = {
res_init,
res_search,
gethostbyname,
+#ifdef HAVE_GETHOSTBYNAME2
gethostbyname2
+#else
+ NULL
+#endif
};