1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00

fix linux build failed when cgo disable (#453)

This commit is contained in:
silenceper
2021-08-30 18:00:08 +08:00
committed by GitHub
parent 5ad3475cdb
commit f8f950db29

View File

@@ -1,4 +1,4 @@
// +build !linux
// +build !linux linux,!cgo
//Package msgaudit for unsupport platform
package msgaudit
@@ -15,5 +15,5 @@ type Client struct {
// NewClient new
func NewClient(cfg *config.Config) (*Client, error) {
return nil, fmt.Errorf("会话存档功能目前只支持Linux平台运行")
return nil, fmt.Errorf("会话存档功能目前只支持Linux平台运行并且打开设置CGO_ENABLED=1")
}