crypt: add automatic darwin support

Currently one would have to pass a `macos` flag explicitly to build on
OSX, but if we replace `macos` with `darwin` this happens automatically.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-07-15 13:16:50 +01:00 committed by msehnout
parent 813275b6c4
commit bca53a596c
4 changed files with 15 additions and 5 deletions

View file

@ -1,4 +1,4 @@
// +build !macos
// +build !darwin
// Copied from https://github.com/amoghe/go-crypt/blob/b3e291286513a0c993f7c4dd7060d327d2d56143/crypt_r.go
// Original sources are under MIT license: