[sr-dev] git:master: core: fixed compilation on Solaris, due to missing gethostbyname2

Marius Zbihlei mariuszbi at gmail.com
Fri Apr 26 10:57:32 CEST 2013


Module: sip-router
Branch: master
Commit: 5b96c7e6ec3cfd8354a6a257a87144196d57fec3
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5b96c7e6ec3cfd8354a6a257a87144196d57fec3

Author: Marius Zbihlei <mariuszbi at gmail.com>
Committer: Marius Zbihlei <mariuszbi at 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
 };
 
  




More information about the sr-dev mailing list