From: Ian Lance Taylor Date: Fri, 15 Feb 2019 14:25:12 +0000 (+0000) Subject: runtime: include and if available X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b54753033a794dfe52c7fb1bc4d7f39b77b872d;p=gcc.git runtime: include and if available Fixes Solaris build. Reviewed-on: https://go-review.googlesource.com/c/162885 From-SVN: r268940 --- diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 993916e9b68..00bc1e514b4 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -a9c1a76e14b66a356d3c3dfb50f1e6138e97733c +6877c95a5f44c3ab4f492d2000ce07771341d7b7 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c index dda99590dc7..cf033afbbd3 100644 --- a/libgo/runtime/go-varargs.c +++ b/libgo/runtime/go-varargs.c @@ -12,6 +12,12 @@ #include #include #include +#ifdef HAVE_SYSCALL_H +#include +#endif +#ifdef HAVE_SYS_SYSCALL_H +#include +#endif /* The syscall package calls C functions. The Go compiler can not represent a C varargs functions. On some systems it's important