ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit f00bfc8fa7c73e6c58dc71d2da4555ce1712aef4
parent 1366af743279eb94c597236182bf92737f4fbaab
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 24 May 2020 10:32:36 +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 { \