[PATCH v1 1/5] perf clockid: Add missing include

From: Ian Rogers

Date: Wed Feb 25 2026 - 20:35:51 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.414.gf7e9f6c205-goog