summaryrefslogtreecommitdiffstats
path: root/contrib/ldns/compat/gmtime_r.c
blob: 7062e7dee30d160ab3df013923b5c9d6032ed9da (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 *gmtime_r(const time_t *timep, struct tm *result)
{
	/* no thread safety. */
	*result = *gmtime(timep);
	return result;
}
OpenPOWER on IntegriCloud