浏览代码

core: fixed compilation on Solaris, due to missing gethostbyname2

TODO: provide a wrapper over dnssec for getipnode...() for Solaris
Marius Zbihlei 12 年之前
父节点
当前提交
5b96c7e6ec
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      dns_func.c

+ 4 - 0
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
 };