From a01f637d496aeaf06118d66f879951ee899f0f01 Mon Sep 17 00:00:00 2001 From: dtucker Date: Fri, 8 Sep 2006 15:05:21 +0000 Subject: [PATCH] - (dtucker) [configure.ac] The BSM header test needs time.h in some cases. --- ChangeLog | 1 + configure.ac | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b0c284a0..40711580 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 20060908 - (dtucker) [auth-sia.c] Add includes required for build on Tru64. Patch from Chris Adams. + - (dtucker) [configure.ac] The BSM header test needs time.h in some cases. 20060907 - (djm) [sshd.c auth.c] Set up fakepw() with privsep uid/gid, so it can diff --git a/configure.ac b/configure.ac index ddc1d0d3..84bb6069 100644 --- a/configure.ac +++ b/configure.ac @@ -1166,7 +1166,13 @@ AC_ARG_WITH(audit, AUDIT_MODULE=bsm dnl Checks for headers, libs and functions AC_CHECK_HEADERS(bsm/audit.h, [], - [AC_MSG_ERROR(BSM enabled and bsm/audit.h not found)]) + [AC_MSG_ERROR(BSM enabled and bsm/audit.h not found)], + [ +#ifdef HAVE_TIME_H +# include +#endif + ] +) AC_CHECK_LIB(bsm, getaudit, [], [AC_MSG_ERROR(BSM enabled and required library not found)]) AC_CHECK_FUNCS(getaudit, [], -- 2.45.2