summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-10 05:15:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:30 -0500
commit3f27c9efb97c7656bc34b559efbbe59d8cab40d7 (patch)
treebbb19440b13ff0bde7eae2d6309d482b56ac93fa
parent144b88b3a0ac91ef8263cdb8cc044d04c2d65f62 (diff)
downloadsamba-3f27c9efb97c7656bc34b559efbbe59d8cab40d7.tar.gz
samba-3f27c9efb97c7656bc34b559efbbe59d8cab40d7.tar.bz2
samba-3f27c9efb97c7656bc34b559efbbe59d8cab40d7.zip
r8278: this should fix the heimdal h_errno warnings
(This used to be commit 5812e74c4f2b95eec89b434371c86268892feaac)
-rw-r--r--source4/heimdal_build/config.h1
-rw-r--r--source4/heimdal_build/config.m411
2 files changed, 10 insertions, 2 deletions
diff --git a/source4/heimdal_build/config.h b/source4/heimdal_build/config.h
index 585db4722e..7c47e73af4 100644
--- a/source4/heimdal_build/config.h
+++ b/source4/heimdal_build/config.h
@@ -40,7 +40,6 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
/* these should be done with configure tests */
#define KRB5
-#define HAVE_H_ERRNO
#define HAVE_INET_ATON
#define HAVE_LONG_LONG
#define HAVE_GETHOSTNAME
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 <sys/types.h>
+#endif
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif])
+
# these are disabled unless heimdal is found below
SMB_MODULE_DEFAULT(KERBEROS_LIB, NOT)
SMB_BINARY_ENABLE(asn1_compile, NO)