Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
musl
/
compat
/
time32
/
settimeofday_time32.c
blob: 09e625cba3fe9c86eb952339bfb190c2517cc42a [
file
] [
log
] [
blame
]
#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
);
}