From 98dfd400e6418c04a8dcb93fb90a006dd0bcf5d9 Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Fri, 13 Apr 2018 15:33:25 +0200 Subject: [PATCH] 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 --- src/os/user/cgo_unix_test.go | 2 +- src/os/user/getgrouplist_unix.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.48.1