aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-varargs.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-03-19 14:00:59 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-03-19 14:00:59 +0000
commit9195aa172bbc20627f23bfb1612180c83a0a7bab (patch)
treee42ecb2ffbddc6bf438c711494028bc3b86f527c /libgo/runtime/go-varargs.c
parent3b595ecaeda647070c6c4ede0c09be78dfc4f763 (diff)
downloadgcc-9195aa172bbc20627f23bfb1612180c83a0a7bab.zip
gcc-9195aa172bbc20627f23bfb1612180c83a0a7bab.tar.gz
gcc-9195aa172bbc20627f23bfb1612180c83a0a7bab.tar.bz2
libgo: fix build on AIX
Since aix/ppc64 has been added to GC toolchain, a mix between new and old files were created in gcc toolchain. This commit corrects this merge for aix/ppc64 and aix/ppc. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/167658 From-SVN: r269797
Diffstat (limited to 'libgo/runtime/go-varargs.c')
-rw-r--r--libgo/runtime/go-varargs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
index cf033af..2b186ef 100644
--- a/libgo/runtime/go-varargs.c
+++ b/libgo/runtime/go-varargs.c
@@ -96,6 +96,8 @@ __go_openat (int fd, char *path, int flags, mode_t mode)
#endif
+#ifdef HAVE_SYSCALL
+
// __go_syscall6 is called by both the runtime and syscall packages.
// We use uintptr_t to make sure that the types match, since the Go
// and C "int" types are not the same.
@@ -106,3 +108,5 @@ __go_syscall6(uintptr_t flag, uintptr_t a1, uintptr_t a2, uintptr_t a3,
{
return syscall (flag, a1, a2, a3, a4, a5, a6);
}
+
+#endif