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;