mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 14:47:09 +00:00
4a6d702edf
- test for sys/wait.h - WSAEWOULDBLOCK test after nonblocking TCP connect. - write_iov_buffer removed: unused and no struct iov on windows. - signed/unsigned warning fixup mini_event. - use ioctlsocket to set nonblocking I/O if fnctl is unavailable. - skip signals that are not defined - detect pwd.h. - detect getpwnam, getrlimit, setsid, sbrk, chroot. - default config has no chroot if chroot() unavailable. - if no kill() then no pidfile is read or written. - gmtime_r is replaced by nonthreadsafe alternative if unavail. used in rrsig time validation errors. git-svn-id: file:///svn/unbound/trunk@1097 be551aaa-1e26-0410-a405-d3ace91eadb9
13 lines
198 B
C
13 lines
198 B
C
#include "config.h"
|
|
|
|
#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;
|
|
}
|