Skip to content

Commit

Permalink
unix: fix epoll_event padding on riscv64
Browse files Browse the repository at this point in the history
Change-Id: I88bccf0e671d350f8f57ac4d277adf4081054729
GitHub-Last-Rev: 3302142
GitHub-Pull-Request: #40
Reviewed-on: https://go-review.googlesource.com/c/sys/+/189877
Reviewed-by: Tobias Klauser <[email protected]>
Run-TryBot: Tobias Klauser <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
tonistiigi authored and tklauser committed Aug 12, 2019
1 parent 51ab0e2 commit 9eafafc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion unix/linux/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ struct my_epoll_event {
// padding is not specified in linux/eventpoll.h but added to conform to the
// alignment requirements of EABI
int32_t padFd;
#elif defined(__powerpc64__) || defined(__s390x__) || defined(__sparc__)
#elif defined(__powerpc64__) || defined(__s390x__) || defined(__sparc__) || defined(__riscv)
int32_t _padFd;
#endif
int32_t fd;
Expand Down
1 change: 1 addition & 0 deletions unix/ztypes_linux_riscv64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9eafafc

Please sign in to comment.