mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-30 09:06:52 +08:00

committed by
Lunny Xiao

parent
b209531959
commit
33ad554800
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
|
||||
}
|
||||
|
Reference in New Issue
Block a user