fix and cleanup suseconds_t/timeval stuff (broken on 64-bit)

trash in the upper 32 bits was making the kernel sleep forever in
select on 64-bit systems.
This commit is contained in:
Rich Felker
2011-04-13 13:16:49 -04:00
parent 91e836fda7
commit cac7d837cc
3 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ TYPEDEF unsigned long uintptr_t;
TYPEDEF long time_t;
TYPEDEF long suseconds_t;
STRUCT timeval { time_t tv_sec; int tv_usec; };
STRUCT timeval { time_t tv_sec; long tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
TYPEDEF int pid_t;