]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf clockid: Add missing include
authorIan Rogers <irogers@google.com>
Wed, 1 Apr 2026 16:13:17 +0000 (09:13 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 3 Apr 2026 02:35:16 +0000 (19:35 -0700)
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@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/clockid.h

index 9b49b4711c76837a08a13d6379b49c117493d459..33dbd8673c1cb04c435a4744e5d6716ed564592f 100644 (file)
@@ -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);