Skip to content

Commit a3df9c4

Browse files
committed
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 <[email protected]>
1 parent 1670921 commit a3df9c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/user/listgroups_solaris.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build cgo
5+
// +build cgo,!osusergo
66

77
// Even though this file requires no C, it is used to provide a
88
// listGroup stub because all the other Solaris calls work. Otherwise,

0 commit comments

Comments
 (0)