From: Sebastien Binet Date: Fri, 13 Apr 2018 13:33:25 +0000 (+0200) Subject: os/user: fix build with "osusergo" build tag X-Git-Tag: go1.11beta1~838 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=98dfd400e6418c04a8dcb93fb90a006dd0bcf5d9;p=gostls13.git os/user: fix build with "osusergo" build tag Fixes #24841 Updates #24845 Change-Id: I4a5c05f4cbf9692bd6cab48baf3cc51fa43fe5a9 Reviewed-on: https://go-review.googlesource.com/106837 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/os/user/cgo_unix_test.go b/src/os/user/cgo_unix_test.go index 674111800f..1d341aa427 100644 --- a/src/os/user/cgo_unix_test.go +++ b/src/os/user/cgo_unix_test.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. // +build darwin dragonfly freebsd !android,linux netbsd openbsd solaris -// +build cgo +// +build cgo,!osusergo package user diff --git a/src/os/user/getgrouplist_unix.go b/src/os/user/getgrouplist_unix.go index 8ad51286c6..9685414fc0 100644 --- a/src/os/user/getgrouplist_unix.go +++ b/src/os/user/getgrouplist_unix.go @@ -3,6 +3,7 @@ // license that can be found in the LICENSE file. // +build dragonfly freebsd !android,linux netbsd openbsd +// +build cgo,!osusergo package user