aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/types_linux.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2020-01-06 01:52:19 +1100
committerTobias Klauser <tobias.klauser@gmail.com>2020-01-06 11:46:56 +0000
commit693748e9fa385f1e2c3b91ca9acbb6c0ad2d133d (patch)
treee01a1f8144710e9bdd9c7658feb484b9e47b44a8 /src/syscall/types_linux.go
parentf9813515c02ac49d350cd3736f8e44cdd5786070 (diff)
downloadgo-693748e9fa385f1e2c3b91ca9acbb6c0ad2d133d.tar.xz
syscall: resync various riscv64 structs with x/sys/unix
For some reason the existing versions have additional padding - manually resync these structs with those in x/sys/unix, also bringing in pollFd which does not currently exist for linux/riscv64. Cross checked with the output from 'go tool cgo -godefs' on a linux/riscv64 machine. Updates #27532 Change-Id: I9fd2d3ad7222208a138773f4a9153c3c9cad7381 Reviewed-on: https://go-review.googlesource.com/c/go/+/212763 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Diffstat (limited to 'src/syscall/types_linux.go')
-rw-r--r--src/syscall/types_linux.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syscall/types_linux.go b/src/syscall/types_linux.go
index b47c3236c0..9de32d9c01 100644
--- a/src/syscall/types_linux.go
+++ b/src/syscall/types_linux.go
@@ -50,6 +50,7 @@ package syscall
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/icmpv6.h>
+#include <poll.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>