runtime: include <syscall.h> and <sys/syscall.h> if available
Fixes Solaris build.
Change-Id: Ib3cf1f00b425abd94fcd83a93cb7ef26bc3958a5
Reviewed-on: https://go-review.googlesource.com/c/162885
Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
index dda9959..cf033af 100644
--- a/libgo/runtime/go-varargs.c
+++ b/libgo/runtime/go-varargs.c
@@ -12,6 +12,12 @@
#include <sys/types.h>
#include <fcntl.h>
#include <sys/ioctl.h>
+#ifdef HAVE_SYSCALL_H
+#include <syscall.h>
+#endif
+#ifdef HAVE_SYS_SYSCALL_H
+#include <sys/syscall.h>
+#endif
/* The syscall package calls C functions. The Go compiler can not
represent a C varargs functions. On some systems it's important