We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 007d66a commit f151f53Copy full SHA for f151f53
tools/build/feature/test-glibc.c
@@ -1,8 +1,19 @@
1
+#include <stdlib.h>
2
+
3
+#if !defined(__UCLIBC__)
4
#include <gnu/libc-version.h>
5
+#else
6
+#define XSTR(s) STR(s)
7
+#define STR(s) #s
8
+#endif
9
10
int main(void)
11
{
12
13
const char *version = gnu_get_libc_version();
14
15
+ const char *version = XSTR(__GLIBC__) "." XSTR(__GLIBC_MINOR__);
16
17
18
return (long)version;
19
}
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
0 commit comments