[PATCH v2 1/7] perf clockid: Add missing include
From: Ian Rogers
Date: Sat Feb 28 2026 - 02:00:46 EST
clockid_t is declared in time.h but the include is missing. Reordering
header files may result in build breakages. Add the include to avoid
this.
Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
---
tools/perf/util/clockid.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/perf/util/clockid.h b/tools/perf/util/clockid.h
index 9b49b4711c76..33dbd8673c1c 100644
--- a/tools/perf/util/clockid.h
+++ b/tools/perf/util/clockid.h
@@ -1,8 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0 */
-
#ifndef __PERF_CLOCKID_H
#define __PERF_CLOCKID_H
+#include <time.h>
+
struct option;
int parse_clockid(const struct option *opt, const char *str, int unset);
--
2.53.0.473.g4a7958ca14-goog