diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/sockcmsg_unix.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/sockcmsg_unix.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go index 26e8b36..062bcab 100644 --- a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go +++ b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go | |||
@@ -18,10 +18,13 @@ func cmsgAlignOf(salen int) int { | |||
18 | salign := SizeofPtr | 18 | salign := SizeofPtr |
19 | 19 | ||
20 | switch runtime.GOOS { | 20 | switch runtime.GOOS { |
21 | case "darwin", "dragonfly", "solaris": | 21 | case "aix": |
22 | // NOTE: It seems like 64-bit Darwin, DragonFly BSD and | 22 | // There is no alignment on AIX. |
23 | // Solaris kernels still require 32-bit aligned access to | 23 | salign = 1 |
24 | // network subsystem. | 24 | case "darwin", "dragonfly", "solaris", "illumos": |
25 | // NOTE: It seems like 64-bit Darwin, DragonFly BSD, | ||
26 | // illumos, and Solaris kernels still require 32-bit | ||
27 | // aligned access to network subsystem. | ||
25 | if SizeofPtr == 8 { | 28 | if SizeofPtr == 8 { |
26 | salign = 4 | 29 | salign = 4 |
27 | } | 30 | } |