diff --git a/.pick_status.json b/.pick_status.json index 821979cf836..473f2ee96b6 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -924,7 +924,7 @@ "description": "perfetto: fix macos compile", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "a871eabcedffb4f817033b393e25ce373d977b1a", "notes": null diff --git a/src/util/perf/u_perfetto.h b/src/util/perf/u_perfetto.h index 5d8d8e4f3b6..eadf7062f2e 100644 --- a/src/util/perf/u_perfetto.h +++ b/src/util/perf/u_perfetto.h @@ -25,11 +25,12 @@ #define _UTIL_PERFETTO_H #include "util/u_atomic.h" +#include "util/detect_os.h" // On Unix, pass a clockid_t to designate which clock was used to gather the timestamp // On Windows, this paramter is ignored, and it's expected that `timestamp` comes from QueryPerformanceCounter -#ifndef _WIN32 -#include +#if DETECT_OS_POSIX +#include typedef clockid_t perfetto_clock_id; #else typedef int32_t perfetto_clock_id;