|
@@ -18,6 +18,9 @@ func cmsgAlignOf(salen int) int {
|
|
|
salign := SizeofPtr
|
|
salign := SizeofPtr
|
|
|
|
|
|
|
|
switch runtime.GOOS {
|
|
switch runtime.GOOS {
|
|
|
|
|
+ case "aix":
|
|
|
|
|
+ // There is no alignment on AIX.
|
|
|
|
|
+ salign = 1
|
|
|
case "darwin", "dragonfly", "solaris":
|
|
case "darwin", "dragonfly", "solaris":
|
|
|
// NOTE: It seems like 64-bit Darwin, DragonFly BSD and
|
|
// NOTE: It seems like 64-bit Darwin, DragonFly BSD and
|
|
|
// Solaris kernels still require 32-bit aligned access to
|
|
// Solaris kernels still require 32-bit aligned access to
|