Build the nats input on freebsd when cgo is enabled (#6658)

This commit is contained in:
Daniel Nelson 2019-11-13 14:45:56 -08:00 committed by GitHub
parent 0c918b099b
commit 122ec0fa39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -1,20 +1,18 @@
// +build !freebsd
// +build !freebsd freebsd,cgo
package nats
import (
"encoding/json"
"io/ioutil"
"net/http"
"net/url"
"path"
"time"
"encoding/json"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/plugins/inputs"
gnatsd "github.com/nats-io/gnatsd/server"
)

View File

@ -1,3 +1,3 @@
// +build freebsd
// +build freebsd,!cgo
package nats

View File

@ -1,4 +1,4 @@
// +build !freebsd
// +build !freebsd freebsd,cgo
package nats