From 3ef323f4f1fd101bc77a8d8ebdd224dfdb707e93 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 2 May 2019 14:34:23 +0000 Subject: [PATCH] unix: add illumos case From CL 174457 which modified this file's vendored copy in the "go" repo. Updates golang/go#20603 Change-Id: Ic89b2e772120a08ac0fa3a56acb93a8ee96ba337 Reviewed-on: https://go-review.googlesource.com/c/sys/+/174958 Reviewed-by: Tobias Klauser --- unix/sockcmsg_unix.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unix/sockcmsg_unix.go b/unix/sockcmsg_unix.go index 723b7f10..062bcaba 100644 --- a/unix/sockcmsg_unix.go +++ b/unix/sockcmsg_unix.go @@ -21,10 +21,10 @@ func cmsgAlignOf(salen int) int { case "aix": // There is no alignment on AIX. 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 { salign = 4 }