From 209865be7cbb95e745c1599507d5bde16c9f0b92 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 24 Mar 2009 15:04:18 -0700 Subject: convert Linux to auto-generated defs.h TBR=r OCL=26686 CL=26688 --- src/runtime/linux/thread.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/runtime/linux/thread.c') diff --git a/src/runtime/linux/thread.c b/src/runtime/linux/thread.c index df24b0712d..4375eca9fc 100644 --- a/src/runtime/linux/thread.c +++ b/src/runtime/linux/thread.c @@ -5,6 +5,7 @@ #include "runtime.h" #include "defs.h" #include "signals.h" +#include "os.h" // Linux futex. // @@ -24,12 +25,12 @@ enum EAGAIN = 11, }; -// TODO(rsc) I tried using 1<<40 here but futex woke up (-ETIMEDOUT). +// TODO(rsc): I tried using 1<<40 here but futex woke up (-ETIMEDOUT). // I wonder if the timespec that gets to the kernel -// actually has two 32-bit numbers in it, so tha +// actually has two 32-bit numbers in it, so that // a 64-bit 1<<40 ends up being 0 seconds, // 1<<8 nanoseconds. -static struct timespec longtime = +static Timespec longtime = { 1<<30, // 34 years 0 -- cgit v1.3-5-g9baa