diff --git a/host/host_darwin_cgo.go b/host/host_darwin_cgo.go index 283d8bd..9b3b1c4 100644 --- a/host/host_darwin_cgo.go +++ b/host/host_darwin_cgo.go @@ -4,9 +4,7 @@ package host // #cgo LDFLAGS: -framework IOKit -// #include -// #include -// #include "include/smc.c" +// #include "smc_darwin.h" import "C" import "context" diff --git a/host/include/smc.c b/host/smc_darwin.c similarity index 98% rename from host/include/smc.c rename to host/smc_darwin.c index 256a441..aedea8b 100644 --- a/host/include/smc.c +++ b/host/smc_darwin.c @@ -1,4 +1,6 @@ -#include "smc.h" +#include +#include +#include "smc_darwin.h" #define IOSERVICE_SMC "AppleSMC" #define IOSERVICE_MODEL "IOPlatformExpertDevice" diff --git a/host/include/smc.h b/host/smc_darwin.h similarity index 100% rename from host/include/smc.h rename to host/smc_darwin.h