From 3f27c9efb97c7656bc34b559efbbe59d8cab40d7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 10 Jul 2005 05:15:08 +0000 Subject: r8278: this should fix the heimdal h_errno warnings (This used to be commit 5812e74c4f2b95eec89b434371c86268892feaac) --- source4/heimdal_build/config.m4 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source4/heimdal_build/config.m4') diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4 index 18e491c30b..3a60ff3240 100644 --- a/source4/heimdal_build/config.m4 +++ b/source4/heimdal_build/config.m4 @@ -1,10 +1,19 @@ AC_CHECK_HEADERS(sys/file.h signal.h errno.h crypt.h curses.h sys/bittypes.h) AC_CHECK_HEADERS(sys/stropts.h sys/timeb.h sys/times.h sys/uio.h sys/un.h) -AC_CHECK_HEADERS(sys/utsname.h termcap.h term.h timezone.h time.h ttyname.h) +AC_CHECK_HEADERS(sys/utsname.h termcap.h term.h timezone.h time.h ttyname.h netdb.h) AC_CHECK_FUNCS(setitimer uname umask unsetenv socket sendmsg putenv atexit strsep) AC_CHECK_FUNCS(strlwr strncasecmp strptime strsep_copy strtok_r strupr swab) +AC_CHECK_DECL(h_errno, + [AC_DEFINE(HAVE_DECL_H_ERRNO,1,whether h_errno is declared)], [], [ +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_NETDB_H +#include +#endif]) + # these are disabled unless heimdal is found below SMB_MODULE_DEFAULT(KERBEROS_LIB, NOT) SMB_BINARY_ENABLE(asn1_compile, NO) -- cgit