diff options
-rw-r--r-- | source4/heimdal_build/config.h | 1 | ||||
-rw-r--r-- | source4/heimdal_build/config.m4 | 11 |
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) |