Commit cc0a005c authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: fix netbsd build

I've placed net.runtime_Semacquire into netpoll.goc,
but netbsd does not yet use netpoll.goc.

R=golang-dev, bradfitz, iant
CC=golang-dev
https://golang.org/cl/12699045
parent 23e15f72
......@@ -206,14 +206,6 @@ func runtime_pollUnblock(pd *PollDesc) {
runtime·ready(wg);
}
func runtime_Semacquire(addr *uint32) {
runtime·semacquire(addr, true);
}
func runtime_Semrelease(addr *uint32) {
runtime·semrelease(addr);
}
uintptr
runtime·netpollfd(PollDesc *pd)
{
......
......@@ -182,6 +182,17 @@ runtime·semrelease(uint32 volatile *addr)
}
}
// TODO(dvyukov): move to netpoll.goc once it's used by all OSes.
void net·runtime_Semacquire(uint32 *addr)
{
runtime·semacquire(addr, true);
}
void net·runtime_Semrelease(uint32 *addr)
{
runtime·semrelease(addr);
}
func runtime_Semacquire(addr *uint32) {
runtime·semacquire(addr, true);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment