Parcourir la source

core: fixed compilation on Solaris, due to missing gethostbyname2

TODO: provide a wrapper over dnssec for getipnode...() for Solaris
Marius Zbihlei il y a 12 ans
Parent
commit
5b96c7e6ec
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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
 };