diff --git a/disk/disk_darwin_cgo.go b/disk/disk_darwin_cgo.go index 623c5fda8..8a1848ed7 100644 --- a/disk/disk_darwin_cgo.go +++ b/disk/disk_darwin_cgo.go @@ -7,7 +7,7 @@ package disk #cgo LDFLAGS: -framework CoreFoundation -framework IOKit #include #include -#include "disk_darwin.h" +#include "iostat_darwin.h" */ import "C" diff --git a/disk/disk_darwin.c b/disk/iostat_darwin.c similarity index 99% rename from disk/disk_darwin.c rename to disk/iostat_darwin.c index 198d3d1a7..9619c6f47 100644 --- a/disk/disk_darwin.c +++ b/disk/iostat_darwin.c @@ -1,7 +1,7 @@ // https://github.com/lufia/iostat/blob/9f7362b77ad333b26c01c99de52a11bdb650ded2/iostat_darwin.c #include #include -#include "disk_darwin.h" +#include "iostat_darwin.h" #define IOKIT 1 /* to get io_name_t in device_types.h */ diff --git a/disk/disk_darwin.h b/disk/iostat_darwin.h similarity index 100% rename from disk/disk_darwin.h rename to disk/iostat_darwin.h diff --git a/host/host_darwin_cgo.go b/host/host_darwin_cgo.go index 283d8bdd9..9b3b1c436 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 256a441f5..aedea8be9 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