summaryrefslogblamecommitdiff
path: root/compat/time32/settimeofday_time32.c
blob: 09e625cba3fe9c86eb952339bfb190c2517cc42a (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                       
#define _BSD_SOURCE
#include "time32.h"
#include <sys/time.h>

int __settimeofday_time32(const struct timeval32 *tv32, const void *tz)
{
	return settimeofday(!tv32 ? 0 : (&(struct timeval){
		.tv_sec = tv32->tv_sec,
		.tv_usec = tv32->tv_usec}), 0);
}