LibC: Fix timeval field name
This commit is contained in:
parent
00662bad46
commit
c18d926174
|
@ -12,7 +12,7 @@ __BEGIN_DECLS
|
||||||
struct timeval
|
struct timeval
|
||||||
{
|
{
|
||||||
time_t tv_sec; /* Seconds. */
|
time_t tv_sec; /* Seconds. */
|
||||||
suseconds_t tc_usec; /* Microseconds. */
|
suseconds_t tv_usec; /* Microseconds. */
|
||||||
};
|
};
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
|
@ -22,7 +22,7 @@ int select(int nfds, fd_set* __restrict readfds, fd_set* __restrict writefds, fd
|
||||||
if (timeout)
|
if (timeout)
|
||||||
{
|
{
|
||||||
ts.tv_sec = timeout->tv_sec;
|
ts.tv_sec = timeout->tv_sec;
|
||||||
ts.tv_nsec = timeout->tc_usec * 1000;
|
ts.tv_nsec = timeout->tv_usec * 1000;
|
||||||
pts = &ts;
|
pts = &ts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue