- Add adaptive authentication failure delay

- Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
This commit is contained in:
Matt Johnston
2018-11-05 23:36:34 +08:00
parent 6f6ef4834c
commit 02ffdd09dc
6 changed files with 96 additions and 49 deletions

View File

@@ -29,6 +29,11 @@
#include "options.h"
#include "debug.h"
#if __linux__
/* For clock_gettime */
#define _POSIX_C_SOURCE 199309L
#endif
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/param.h> /* required for BSD4_4 define */