diff --git a/unix/linux/types.go b/unix/linux/types.go index 4882ad40..4a6a224e 100644 --- a/unix/linux/types.go +++ b/unix/linux/types.go @@ -283,7 +283,8 @@ 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__) || defined(__riscv) +#elif defined(__powerpc64__) || defined(__s390x__) || defined(__sparc__) || defined(__riscv) \ + || (defined(__mips__) && _MIPS_SIM == _MIPS_SIM_ABI64) int32_t _padFd; #endif int32_t fd; diff --git a/unix/ztypes_linux_mips64.go b/unix/ztypes_linux_mips64.go index 81a818b0..c787be35 100644 --- a/unix/ztypes_linux_mips64.go +++ b/unix/ztypes_linux_mips64.go @@ -783,6 +783,7 @@ type Ustat_t struct { type EpollEvent struct { Events uint32 + _ int32 Fd int32 Pad int32 } diff --git a/unix/ztypes_linux_mips64le.go b/unix/ztypes_linux_mips64le.go index 214e345b..54191231 100644 --- a/unix/ztypes_linux_mips64le.go +++ b/unix/ztypes_linux_mips64le.go @@ -783,6 +783,7 @@ type Ustat_t struct { type EpollEvent struct { Events uint32 + _ int32 Fd int32 Pad int32 }