runtime: Add casts to mincore call to compile on Solaris.
Based on patch from Rainer Orth. From-SVN: r213599
This commit is contained in:
parent
c1b361560f
commit
d79fe5971a
|
@ -47,7 +47,7 @@ addrspace_free(void *v __attribute__ ((unused)), uintptr n __attribute__ ((unuse
|
||||||
chunk = page_size * sizeof vec;
|
chunk = page_size * sizeof vec;
|
||||||
if(chunk > (n - off))
|
if(chunk > (n - off))
|
||||||
chunk = n - off;
|
chunk = n - off;
|
||||||
errval = mincore((int8*)v + off, chunk, vec);
|
errval = mincore((char*)v + off, chunk, (void*)vec);
|
||||||
// ENOMEM means unmapped, which is what we want.
|
// ENOMEM means unmapped, which is what we want.
|
||||||
// Anything else we assume means the pages are mapped.
|
// Anything else we assume means the pages are mapped.
|
||||||
if(errval == 0 || errno != ENOMEM)
|
if(errval == 0 || errno != ENOMEM)
|
||||||
|
|
Loading…
Reference in New Issue