Fix build attempt 3 (add stub for host_cgo.go)

This commit is contained in:
Tatiana Borisova 2017-12-14 17:27:08 +00:00
parent 48fc561289
commit 1be443f398
4 changed files with 4 additions and 1 deletions

3
host/host_cgo.go Normal file
View File

@ -0,0 +1,3 @@
// +build cgo
package gopsutil

View File

@ -4,7 +4,7 @@
package host
// #cgo LDFLAGS: -framework IOKit
// #include "include/smc.c"
// #include "smc.h"
import "C"
func SensorsTemperatures() ([]TemperatureStat, error) {