diff --git a/collector/filesystem_bsd.go b/collector/filesystem_bsd.go index f51f0eee85..f5c4ba3538 100644 --- a/collector/filesystem_bsd.go +++ b/collector/filesystem_bsd.go @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build freebsd openbsd +// +build freebsd openbsd darwin,amd64 // +build !nofilesystem package collector diff --git a/collector/filesystem_common.go b/collector/filesystem_common.go index cbd609defb..3a5db130d6 100644 --- a/collector/filesystem_common.go +++ b/collector/filesystem_common.go @@ -12,7 +12,7 @@ // limitations under the License. // +build !nofilesystem -// +build linux freebsd openbsd +// +build linux freebsd openbsd darwin,amd64 package collector