Sign in
android
/
platform
/
external
/
musl
/
290db7ffda2590ff26037056c50d367583af0069
/
.
/
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
);
}