Browse code

core: fixed compilation on Solaris, due to missing gethostbyname2

TODO: provide a wrapper over dnssec for getipnode...() for Solaris

Marius Zbihlei authored on 26/04/2013 08:56:26
Showing 1 changed files
... ...
@@ -38,7 +38,11 @@ struct dns_func_t dns_func = {
38 38
 	res_init,
39 39
 	res_search,
40 40
 	gethostbyname,
41
+#ifdef HAVE_GETHOSTBYNAME2
41 42
 	gethostbyname2
43
+#else
44
+	NULL
45
+#endif
42 46
 };
43 47
 
44 48