1
0
mirror of https://github.com/golang/go synced 2024-11-19 07:24:42 -07:00

runtime: fix freebsd build

TBR=r
CC=golang-dev
https://golang.org/cl/2296041
This commit is contained in:
Russ Cox 2010-09-28 21:37:12 -04:00
parent a2d2341e80
commit 5b7e50a0aa

View File

@ -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;