|
@@ -21,10 +21,10 @@ func cmsgAlignOf(salen int) int {
|
|
|
case "aix":
|
|
case "aix":
|
|
|
// There is no alignment on AIX.
|
|
// There is no alignment on AIX.
|
|
|
salign = 1
|
|
salign = 1
|
|
|
- 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 "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 {
|
|
if SizeofPtr == 8 {
|
|
|
salign = 4
|
|
salign = 4
|
|
|
}
|
|
}
|