diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-08-04 17:54:09 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-08-04 17:54:09 +0000 |
commit | d79fe5971a4bdc6291ed486322ef4d289468d673 (patch) | |
tree | 145bec68a1baf5611012bbf839e1e928e6b1cab2 /libgo/runtime/mem.c | |
parent | c1b361560f0785e02bb25d19de01cde3729dd35c (diff) | |
download | gcc-d79fe5971a4bdc6291ed486322ef4d289468d673.zip gcc-d79fe5971a4bdc6291ed486322ef4d289468d673.tar.gz gcc-d79fe5971a4bdc6291ed486322ef4d289468d673.tar.bz2 |
runtime: Add casts to mincore call to compile on Solaris.
Based on patch from Rainer Orth.
From-SVN: r213599
Diffstat (limited to 'libgo/runtime/mem.c')
-rw-r--r-- | libgo/runtime/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/mem.c b/libgo/runtime/mem.c index 8e37486..6312480 100644 --- a/libgo/runtime/mem.c +++ b/libgo/runtime/mem.c @@ -47,7 +47,7 @@ addrspace_free(void *v __attribute__ ((unused)), uintptr n __attribute__ ((unuse chunk = page_size * sizeof vec; if(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. // Anything else we assume means the pages are mapped. if(errval == 0 || errno != ENOMEM) |