summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-04 17:54:09 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-04 17:54:09 +0000
commite1f64bbf602484c62a3749fc1ca200a13d5b0aa4 (patch)
tree145bec68a1baf5611012bbf839e1e928e6b1cab2 /libgo
parent0d8be6c77dab75f09ea618f552a42a5b76fe891a (diff)
downloadgcc-e1f64bbf602484c62a3749fc1ca200a13d5b0aa4.tar.gz
runtime: Add casts to mincore call to compile on Solaris.
Based on patch from Rainer Orth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/mem.c b/libgo/runtime/mem.c
index 8e374863b8e..6312480b69d 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)