logswan

Fast Web log analyzer using probabilistic data structures
Log | Files | Refs | README | LICENSE

commit 9eb00b97c35261d4bcd2f0a6ec66c0ac2cc4d196
parent ba1d05faf5671fea3b623b7192e0ddbb4c68904c
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 23 May 2020 11:25:05 +0200

Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.

Diffstat:
Mcompat/compat.h | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/compat/compat.h b/compat/compat.h @@ -9,6 +9,11 @@ #include "strtonum.h" #endif +/* Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available */ +#ifndef CLOCK_MONOTONIC +#define CLOCK_MONOTONIC CLOCK_REALTIME +#endif + #ifndef timespecsub #define timespecsub(tsp, usp, vsp) \ do { \