libc: Make tv_usec in timeval signed, as it should be

This commit is contained in:
apio 2022-10-27 17:20:46 +02:00
parent 50cda50f01
commit 703b0a1435
2 changed files with 4 additions and 1 deletions

View File

@ -25,4 +25,7 @@ typedef long int clock_t;
/* Value representing time in seconds. */
typedef long int time_t;
/* Type representing signed time in microseconds. */
typedef long int suseconds_t;
#endif

View File

@ -25,7 +25,7 @@ struct tm
struct timeval
{
time_t tv_sec;
unsigned long tv_usec;
suseconds_t tv_usec;
};
#define CLOCKS_PER_SEC 1000 // Number of clock_t per second.