mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-23 20:36:21 +01:00
Workaround LLVM/Clang 11.0 for Darwin builds (#2200)
LLVM/Clang 11.0 adds a `-Wundef-prefix=TARGET_OS_` build flag which breaks this build flag. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
3e6f4ce627
commit
fda358a1ec
@ -39,6 +39,7 @@ import (
|
|||||||
#include <mach/mach_init.h>
|
#include <mach/mach_init.h>
|
||||||
#include <mach/mach_host.h>
|
#include <mach/mach_host.h>
|
||||||
#include <mach/host_info.h>
|
#include <mach/host_info.h>
|
||||||
|
#include <TargetConditionals.h>
|
||||||
#if TARGET_OS_MAC
|
#if TARGET_OS_MAC
|
||||||
#include <libproc.h>
|
#include <libproc.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user