From e9d7b4ba55b9ca576d6d1bd1dd4a68ead5b24164 Mon Sep 17 00:00:00 2001 From: Jeremy Schlatter Date: Wed, 22 May 2019 17:45:22 -0700 Subject: [PATCH] accounts/keystore: enable fallback Darwin w/o CGO Without this, accounts/keystore fails to build for Darwin with CGO_ENABLED=0. --- accounts/keystore/watch.go | 2 +- accounts/keystore/watch_fallback.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/keystore/watch.go b/accounts/keystore/watch.go index bbcfb99257..d6ef53327d 100644 --- a/accounts/keystore/watch.go +++ b/accounts/keystore/watch.go @@ -14,7 +14,7 @@ // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . -// +build darwin,!ios freebsd linux,!arm64 netbsd solaris +// +build darwin,!ios,cgo freebsd linux,!arm64 netbsd solaris package keystore diff --git a/accounts/keystore/watch_fallback.go b/accounts/keystore/watch_fallback.go index 7c5e9cb2e2..de0e87f8a5 100644 --- a/accounts/keystore/watch_fallback.go +++ b/accounts/keystore/watch_fallback.go @@ -14,7 +14,7 @@ // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . -// +build ios linux,arm64 windows !darwin,!freebsd,!linux,!netbsd,!solaris +// +build darwin,!cgo ios linux,arm64 windows !darwin,!freebsd,!linux,!netbsd,!solaris // This is the fallback implementation of directory watching. // It is used on unsupported platforms.