build: h_errno for heimdal
[nivanova/samba-autobuild/.git] / source4 / heimdal_build / wscript_configure
index b56b4f5f632980be8f431971154cbd57fb996cec..c53cd39d72705497a10ef77968a4589499606716 100644 (file)
@@ -20,8 +20,12 @@ conf.CHECK_FUNCS('bswap32')
 
 conf.DEFINE('HAVE_KRB_STRUCT_WINSIZE', 1)
 conf.DEFINE('VOID_RETSIGTYPE', 1)
 
 conf.DEFINE('HAVE_KRB_STRUCT_WINSIZE', 1)
 conf.DEFINE('VOID_RETSIGTYPE', 1)
+
 conf.CHECK_VARIABLE('h_errno')
 
 conf.CHECK_VARIABLE('h_errno')
 
+# strangely enough, we need it with another define too
+conf.CHECK_VARIABLE('h_errno', define='HAVE_DECL_H_ERRNO')
+
 conf.CHECK_HEADERS('arpa/nameser.h dns.h')
 conf.CHECK_FUNCS_IN('res_search res_nsearch res_ndestroy dns_search dn_expand', 'resolv')
 conf.CHECK_VARIABLE('_res')
 conf.CHECK_HEADERS('arpa/nameser.h dns.h')
 conf.CHECK_FUNCS_IN('res_search res_nsearch res_ndestroy dns_search dn_expand', 'resolv')
 conf.CHECK_VARIABLE('_res')