xref: /freebsd/contrib/ldns/compat/localtime_r.c (revision cfe30d02adda7c3b5c76156ac52d50d8cab325d9)
1 #ifdef HAVE_CONFIG_H
2 #include <ldns/config.h>
3 #endif
4 
5 #ifdef HAVE_TIME_H
6 #include <time.h>
7 #endif
8 
localtime_r(const time_t * timep,struct tm * result)9 struct tm *localtime_r(const time_t *timep, struct tm *result)
10 {
11 	/* no thread safety. */
12 	*result = *localtime(timep);
13 	return result;
14 }
15