summaryrefslogtreecommitdiffstats
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/cloexec.h b/tools/perf/util/cloexec.h
index 68888c29b04a..3bee6773ddb0 100644
--- a/tools/perf/util/cloexec.h
+++ b/tools/perf/util/cloexec.h
@@ -4,7 +4,7 @@
unsigned long perf_event_open_cloexec_flag(void);
#ifdef __GLIBC_PREREQ
-#if !__GLIBC_PREREQ(2, 6)
+#if !__GLIBC_PREREQ(2, 6) && !defined(__UCLIBC__)
extern int sched_getcpu(void) __THROW;
#endif
#endif