diff options
| author | Sebastien Binet <seb.binet@gmail.com> | 2018-04-13 15:33:25 +0200 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-04-13 16:51:18 +0000 |
| commit | 98dfd400e6418c04a8dcb93fb90a006dd0bcf5d9 (patch) | |
| tree | 286047be53df7a7af2cebdf26f4ac12c745d3b87 /src | |
| parent | b08a9b7eccbd0d15404eead53a21a03bf86adbbd (diff) | |
| download | go-98dfd400e6418c04a8dcb93fb90a006dd0bcf5d9.tar.xz | |
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 <bradfitz@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/os/user/cgo_unix_test.go | 2 | ||||
| -rw-r--r-- | src/os/user/getgrouplist_unix.go | 1 |
2 files changed, 2 insertions, 1 deletions
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 |
