aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-varargs.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-02-15 14:25:12 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-02-15 14:25:12 +0000
commit7b54753033a794dfe52c7fb1bc4d7f39b77b872d (patch)
tree9e86edb84828f78f3b7392e12582e06f44363c09 /libgo/runtime/go-varargs.c
parentd86dd2490f8956c764021f594d99d16b3dca81e0 (diff)
downloadgcc-7b54753033a794dfe52c7fb1bc4d7f39b77b872d.zip
gcc-7b54753033a794dfe52c7fb1bc4d7f39b77b872d.tar.gz
gcc-7b54753033a794dfe52c7fb1bc4d7f39b77b872d.tar.bz2
runtime: include <syscall.h> and <sys/syscall.h> if available
Fixes Solaris build. Reviewed-on: https://go-review.googlesource.com/c/162885 From-SVN: r268940
Diffstat (limited to 'libgo/runtime/go-varargs.c')
-rw-r--r--libgo/runtime/go-varargs.c6
1 files changed, 6 insertions, 0 deletions
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