diff options
Diffstat (limited to 'contrib/ldns/compat/gmtime_r.c')
-rw-r--r-- | contrib/ldns/compat/gmtime_r.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/ldns/compat/gmtime_r.c b/contrib/ldns/compat/gmtime_r.c new file mode 100644 index 0000000..7062e7d --- /dev/null +++ b/contrib/ldns/compat/gmtime_r.c @@ -0,0 +1,14 @@ +#ifdef HAVE_CONFIG_H +#include <ldns/config.h> +#endif + +#ifdef HAVE_TIME_H +#include <time.h> +#endif + +struct tm *gmtime_r(const time_t *timep, struct tm *result) +{ + /* no thread safety. */ + *result = *gmtime(timep); + return result; +} |