summaryrefslogtreecommitdiffhomepage
path: root/includes.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-11-05 23:36:34 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-11-05 23:36:34 +0800
commit02ffdd09dc1941f7a924cde8db288fcd64987f59 (patch)
tree2f8bfd41d17f2f291bb0f65cff0cbbd00ef3b38e /includes.h
parent6f6ef4834c792f7ccf2409080a6adaf44b8f0d51 (diff)
- Add adaptive authentication failure delay
- Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes.h b/includes.h
index 246882b..0f12620 100644
--- a/includes.h
+++ b/includes.h
@@ -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 */