1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-29 13:49:21 +08:00

[host][darwin][cgo] Fix #832 work around once-again broken go modules not including C files

Supersedes #885 by @afontaine
This commit is contained in:
Lomanic 2020-05-31 20:01:47 +02:00
parent 663af789c0
commit 42c6875555
3 changed files with 4 additions and 4 deletions

View File

@ -4,9 +4,7 @@
package host package host
// #cgo LDFLAGS: -framework IOKit // #cgo LDFLAGS: -framework IOKit
// #include <stdio.h> // #include "smc_darwin.h"
// #include <string.h>
// #include "include/smc.c"
import "C" import "C"
import "context" import "context"

View File

@ -1,4 +1,6 @@
#include "smc.h" #include <stdio.h>
#include <string.h>
#include "smc_darwin.h"
#define IOSERVICE_SMC "AppleSMC" #define IOSERVICE_SMC "AppleSMC"
#define IOSERVICE_MODEL "IOPlatformExpertDevice" #define IOSERVICE_MODEL "IOPlatformExpertDevice"