Build the nats input on freebsd when cgo is enabled (#6658)
This commit is contained in:
parent
0c918b099b
commit
122ec0fa39
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// +build freebsd
|
||||
// +build freebsd,!cgo
|
||||
|
||||
package nats
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build !freebsd
|
||||
// +build !freebsd freebsd,cgo
|
||||
|
||||
package nats
|
||||
|
||||
|
|
Loading…
Reference in New Issue