Skip to content

Commit 98dfd40

Browse files
sbinetbradfitz
authored andcommitted
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 <[email protected]>
1 parent b08a9b7 commit 98dfd40

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/os/user/cgo_unix_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// +build darwin dragonfly freebsd !android,linux netbsd openbsd solaris
6-
// +build cgo
6+
// +build cgo,!osusergo
77

88
package user
99

src/os/user/getgrouplist_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// +build dragonfly freebsd !android,linux netbsd openbsd
6+
// +build cgo,!osusergo
67

78
package user
89

0 commit comments

Comments
 (0)