summaryrefslogtreecommitdiff
path: root/compat/localtime_r.c
blob: 017c6e4d65938653636a12f38df4cdc70097ff4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifdef HAVE_CONFIG_H
#include <ldns/config.h>
#endif

#ifdef HAVE_TIME_H
#include <time.h>
#endif

struct tm *localtime_r(const time_t *timep, struct tm *result)
{
	/* no thread safety. */
	*result = *localtime(timep);
	return result;
}