summaryrefslogtreecommitdiff
path: root/libgo/runtime/lock_futex.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/lock_futex.c')
-rw-r--r--libgo/runtime/lock_futex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libgo/runtime/lock_futex.c b/libgo/runtime/lock_futex.c
index 4f3d507726d..cdc12d7c75c 100644
--- a/libgo/runtime/lock_futex.c
+++ b/libgo/runtime/lock_futex.c
@@ -2,17 +2,19 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// +build freebsd linux
+
#include "runtime.h"
// This implementation depends on OS-specific implementations of
//
-// runtime.futexsleep(uint32 *addr, uint32 val, int64 ns)
+// runtime_futexsleep(uint32 *addr, uint32 val, int64 ns)
// Atomically,
// if(*addr == val) sleep
// Might be woken up spuriously; that's allowed.
// Don't sleep longer than ns; ns < 0 means forever.
//
-// runtime.futexwakeup(uint32 *addr, uint32 cnt)
+// runtime_futexwakeup(uint32 *addr, uint32 cnt)
// If any procs are sleeping on addr, wake up at most cnt.
enum