diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-01-17 14:18:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-01-17 14:18:39 +0000 |
commit | 1efa38d1a7eda7384e59feae004b653b6c192710 (patch) | |
tree | 8775f5c85585ca6af63878cc44d09a490ccd93c3 /libgo/runtime/mem.c | |
parent | eec3e72c11440b7f2fa46d55ed07f09cf4202fdd (diff) | |
download | gcc-1efa38d1a7eda7384e59feae004b653b6c192710.zip gcc-1efa38d1a7eda7384e59feae004b653b6c192710.tar.gz gcc-1efa38d1a7eda7384e59feae004b653b6c192710.tar.bz2 |
libgo: Solaris and Irix compatibility patches.
From Rainer Orth.
From-SVN: r183246
Diffstat (limited to 'libgo/runtime/mem.c')
-rw-r--r-- | libgo/runtime/mem.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libgo/runtime/mem.c b/libgo/runtime/mem.c index 04fca2c..a1c5eaa 100644 --- a/libgo/runtime/mem.c +++ b/libgo/runtime/mem.c @@ -1,3 +1,7 @@ +/* Defining _XOPEN_SOURCE hides the declaration of madvise() on Solaris < + 11 and the MADV_DONTNEED definition on IRIX 6.5. */ +#undef _XOPEN_SOURCE + #include <errno.h> #include <unistd.h> @@ -67,7 +71,7 @@ runtime_SysAlloc(uintptr n) } void -runtime_SysUnused(void *v, uintptr n) +runtime_SysUnused(void *v __attribute__ ((unused)), uintptr n __attribute__ ((unused))) { #ifdef MADV_DONTNEED runtime_madvise(v, n, MADV_DONTNEED); |