diff --git a/src/pkg/runtime/freebsd/thread.c b/src/pkg/runtime/freebsd/thread.c index 4a52a83570..48532f6afc 100644 --- a/src/pkg/runtime/freebsd/thread.c +++ b/src/pkg/runtime/freebsd/thread.c @@ -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; }