From 9195aa172bbc20627f23bfb1612180c83a0a7bab Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 19 Mar 2019 14:00:59 +0000 Subject: 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 --- libgo/runtime/go-varargs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libgo/runtime/go-varargs.c') 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 -- cgit v1.1