diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2018-04-16 21:34:12 +0000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-04-16 21:42:05 +0000 |
| commit | a3df9c475509d92d2995bc33e10b987bc330dee8 (patch) | |
| tree | d92bb7ccce2abd8cb70c073366f9f5c6e72a80ee /src | |
| parent | 1670921a07bc25116d6fdcafb849e1ff8bd6e9bc (diff) | |
| download | go-a3df9c475509d92d2995bc33e10b987bc330dee8.tar.xz | |
os/user: fix osusergo build on Solaris
Verified that on on Linux, with:
CGO_ENABLED=1 GOOS=solaris go install --tags=osusergo
... it builds now.
Updates #24841
Updates #24845
Change-Id: I49f40532bc2a13a9d282771592fc8d7f116b1902
Reviewed-on: https://go-review.googlesource.com/107304
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/os/user/listgroups_solaris.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/user/listgroups_solaris.go b/src/os/user/listgroups_solaris.go index 28a8a78dbb..f3cbf6ce4a 100644 --- a/src/os/user/listgroups_solaris.go +++ b/src/os/user/listgroups_solaris.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build cgo +// +build cgo,!osusergo // Even though this file requires no C, it is used to provide a // listGroup stub because all the other Solaris calls work. Otherwise, |
