aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-varargs.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2015-11-06 19:15:45 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2015-11-06 19:15:45 +0000
commit9da92cbda9b73a179f031d4d362b5374f9fcaa09 (patch)
tree3c89e373addb3b0abe146e923891ebbdfc72ced5 /libgo/runtime/go-varargs.c
parente78d485eb842bfe4209cec9da3725f5ef6a74abb (diff)
downloadgcc-9da92cbda9b73a179f031d4d362b5374f9fcaa09.zip
gcc-9da92cbda9b73a179f031d4d362b5374f9fcaa09.tar.gz
gcc-9da92cbda9b73a179f031d4d362b5374f9fcaa09.tar.bz2
libgo: Solaris portability fixes.
Only build net/hook_cloexec.go on GNU/Linux and FreeBSD, because those are the only systems with accept4. Add syscall/libcall_bsd.go to define sendfile for *BSD and Solaris. Revert tcpsockopt_solaris.go back to the earlier version, so that it works on Solaris 10. Always pass the address of a Pid_t value to TIOCGPGRP and TIOCSPGRP. Include <unistd.h> in runtime/go-varargs.c. Reviewed-on: https://go-review.googlesource.com/16719 From-SVN: r229880
Diffstat (limited to 'libgo/runtime/go-varargs.c')
-rw-r--r--libgo/runtime/go-varargs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
index 534c0db..691ee56 100644
--- a/libgo/runtime/go-varargs.c
+++ b/libgo/runtime/go-varargs.c
@@ -8,6 +8,7 @@
#include <errno.h>
#include <stdint.h>
+#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/ioctl.h>