aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/cloexec.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/cloexec.h')
-rw-r--r--tools/perf/util/cloexec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/cloexec.h b/tools/perf/util/cloexec.h
index 94a5a7d829d5..68888c29b04a 100644
--- a/tools/perf/util/cloexec.h
+++ b/tools/perf/util/cloexec.h
@@ -3,4 +3,10 @@
unsigned long perf_event_open_cloexec_flag(void);
+#ifdef __GLIBC_PREREQ
+#if !__GLIBC_PREREQ(2, 6)
+extern int sched_getcpu(void) __THROW;
+#endif
+#endif
+
#endif /* __PERF_CLOEXEC_H */