diff options
Diffstat (limited to 'src/lib/evil/evil_time.h')
-rw-r--r-- | src/lib/evil/evil_time.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/evil/evil_time.h b/src/lib/evil/evil_time.h index 591900df4f..16fdfc0059 100644 --- a/src/lib/evil/evil_time.h +++ b/src/lib/evil/evil_time.h @@ -43,6 +43,12 @@ EVIL_API int evil_gettimeofday(struct timeval *tv, struct timezone *tz); # define HAVE_GETTIMEOFDAY 1 #endif +EVIL_API struct tm *evil_localtime_r(const time_t * time, struct tm * result); + +#ifndef HAVE_LOCALTIME_R +# define HAVE_LOCALTIME_R +# define localtime_r evil_localtime_r +#endif /** * @brief Convert a string representation of time to a time tm structure . |