parent
b209531959
commit
33ad554800
270 changed files with 71049 additions and 14434 deletions
11
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
11
vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
|
@ -18,10 +18,13 @@ func cmsgAlignOf(salen int) int {
|
|||
salign := SizeofPtr
|
||||
|
||||
switch runtime.GOOS {
|
||||
case "darwin", "dragonfly", "solaris":
|
||||
// NOTE: It seems like 64-bit Darwin, DragonFly BSD and
|
||||
// Solaris kernels still require 32-bit aligned access to
|
||||
// network subsystem.
|
||||
case "aix":
|
||||
// There is no alignment on AIX.
|
||||
salign = 1
|
||||
case "darwin", "dragonfly", "solaris", "illumos":
|
||||
// NOTE: It seems like 64-bit Darwin, DragonFly BSD,
|
||||
// illumos, and Solaris kernels still require 32-bit
|
||||
// aligned access to network subsystem.
|
||||
if SizeofPtr == 8 {
|
||||
salign = 4
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue