projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf bench numa: Fix to show proper convergence stats
[linux-2.6-microblaze.git]
/
tools
/
perf
/
util
/
cloexec.c
diff --git
a/tools/perf/util/cloexec.c
b/tools/perf/util/cloexec.c
index
85b5238
..
2babdda
100644
(file)
--- a/
tools/perf/util/cloexec.c
+++ b/
tools/perf/util/cloexec.c
@@
-7,11
+7,15
@@
static unsigned long flag = PERF_FLAG_FD_CLOEXEC;
+#ifdef __GLIBC_PREREQ
+#if !__GLIBC_PREREQ(2, 6)
int __weak sched_getcpu(void)
{
errno = ENOSYS;
return -1;
}
+#endif
+#endif
static int perf_flag_probe(void)
{