summaryrefslogtreecommitdiff
path: root/arch/x86_64/bits
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-13 13:16:49 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-13 13:16:49 -0400
commitcac7d837ccc35b7e80d8f1eb7338f8e9d8b1b2d8 (patch)
treeb95687d3a7052d9e73046b6c5e212962390e5461 /arch/x86_64/bits
parent91e836fda7d4e2a4ba38d5faec6e3876b1b5e179 (diff)
downloadmusl-cac7d837ccc35b7e80d8f1eb7338f8e9d8b1b2d8.tar.gz
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.
Diffstat (limited to 'arch/x86_64/bits')
-rwxr-xr-xarch/x86_64/bits/alltypes.h.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/bits/alltypes.h.sh b/arch/x86_64/bits/alltypes.h.sh
index af2a4d9a..19843bd3 100755
--- a/arch/x86_64/bits/alltypes.h.sh
+++ b/arch/x86_64/bits/alltypes.h.sh
@@ -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;