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>
This commit is contained in:
Sebastien Binet 2018-04-13 15:33:25 +02:00 committed by Brad Fitzpatrick
parent b08a9b7ecc
commit 98dfd400e6
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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