diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-11-05 23:36:34 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-11-05 23:36:34 +0800 |
commit | 02ffdd09dc1941f7a924cde8db288fcd64987f59 (patch) | |
tree | 2f8bfd41d17f2f291bb0f65cff0cbbd00ef3b38e /configure.ac | |
parent | 6f6ef4834c792f7ccf2409080a6adaf44b8f0d51 (diff) |
- Add adaptive authentication failure delay
- Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c0bb8a3..7130152 100644 --- a/configure.ac +++ b/configure.ac @@ -497,6 +497,12 @@ AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline ) AC_CHECK_FUNCS(setutxent utmpxname) AC_CHECK_FUNCS(logout updwtmp logwtmp) +# POSIX monotonic time +OLDCFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" +AC_CHECK_FUNCS(clock_gettime) +CFLAGS="$OLDCFLAGS" + # OS X monotonic time AC_CHECK_HEADERS([mach/mach_time.h]) AC_CHECK_FUNCS(mach_absolute_time) |