]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: add a padding field to EpollEvent on s390x
authorMichael Munday <munday@ca.ibm.com>
Thu, 9 Jun 2016 16:01:43 +0000 (12:01 -0400)
committerMichael Munday <munday@ca.ibm.com>
Fri, 10 Jun 2016 03:54:43 +0000 (03:54 +0000)
Fixes #16021.

Change-Id: I55df38bbccd2641abcb54704115002a9aa04325d
Reviewed-on: https://go-review.googlesource.com/23962
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/types_linux.go
src/syscall/ztypes_linux_s390x.go

index 28d0225cbf3000855d65806ad121eb35c5e6456c..2a16650c0bb2e8685b66f510a219a01441b99088 100644 (file)
@@ -117,7 +117,7 @@ struct my_epoll_event {
        // alignment requirements of EABI
        int32_t padFd;
 #endif
-#ifdef  __powerpc64__
+#if defined(__powerpc64__) || defined(__s390x__)
        int32_t _padFd;
 #endif
        int32_t fd;
index 3ab8e6a5580d2755051aa78cd7ea7c407b188105..cdde47863f7d584eebf9b84c321424908d3c5fa3 100644 (file)
@@ -588,6 +588,7 @@ type Ustat_t struct {
 
 type EpollEvent struct {
        Events uint32
+       _      int32
        Fd     int32
        Pad    int32
 }