]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix freebsd build
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 10 Nov 2011 01:02:24 +0000 (10:02 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Thu, 10 Nov 2011 01:02:24 +0000 (10:02 +0900)
R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/5370050

src/pkg/runtime/freebsd/thread.c

index 4a52a83570e2eb60f1e21593d5757eb894966d6e..48532f6afc7eb10216439d5e8aec6a8dfb6fc3ba 100644 (file)
@@ -21,8 +21,8 @@ runtime·futexsleep(uint32 *addr, uint32 val, int64 ns)
        if(ns < 0)
                tsp = nil;
        else {
-               ts.sec = ns / 1000000000LL;
-               ts.nsec = ns % 1000000000LL;
+               ts.tv_sec = ns / 1000000000LL;
+               ts.tv_nsec = ns % 1000000000LL;
                tsp = &ts;
        }