Build the nats input on freebsd when cgo is enabled (#6658)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user