Commit 5b7e50a0 authored by Russ Cox's avatar Russ Cox

runtime: fix freebsd build

TBR=r
CC=golang-dev
https://golang.org/cl/2296041
parent a2d2341e
......@@ -11,7 +11,7 @@ SysAlloc(uintptr n)
mstats.sys += n;
v = runtime_mmap(nil, n, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANON|MAP_PRIVATE, -1, 0);
if(v < (void*)4096) {
printf("mmap: errno=%p\n", p);
printf("mmap: errno=%p\n", v);
throw("mmap");
}
return v;
......
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