From: Kir Kolyshkin Date: Mon, 16 Apr 2018 17:11:55 +0000 (-0700) Subject: os/user: fix build on darwin with "osusergo" build tag X-Git-Tag: go1.11beta1~802 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=04a27bef6f2c96251161d63761617542ddc762bc;p=gostls13.git os/user: fix build on darwin with "osusergo" build tag Fixes #24841 Updates #24845 Change-Id: Ia7e2deefe64c12ee8a76ce6ed9f9e003e912b161 Reviewed-on: https://go-review.googlesource.com/107299 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/os/user/getgrouplist_darwin.go b/src/os/user/getgrouplist_darwin.go index 935c6de942..e8fe26c47f 100644 --- a/src/os/user/getgrouplist_darwin.go +++ b/src/os/user/getgrouplist_darwin.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build cgo,!osusergo + package user /*