diff --git a/host/host_cgo.go b/host/host_cgo.go new file mode 100644 index 0000000..c95dd23 --- /dev/null +++ b/host/host_cgo.go @@ -0,0 +1,3 @@ +// +build cgo + +package gopsutil diff --git a/host/host_darwin_cgo.go b/host/host_darwin_cgo.go index be5e18b..9471c3a 100644 --- a/host/host_darwin_cgo.go +++ b/host/host_darwin_cgo.go @@ -4,7 +4,7 @@ package host // #cgo LDFLAGS: -framework IOKit -// #include "include/smc.c" +// #include "smc.h" import "C" func SensorsTemperatures() ([]TemperatureStat, error) { diff --git a/host/include/smc.c b/host/smc.c similarity index 100% rename from host/include/smc.c rename to host/smc.c diff --git a/host/include/smc.h b/host/smc.h similarity index 100% rename from host/include/smc.h rename to host/smc.h