Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
tools
/
build
/
feature
/
test-glibc.c
diff --git
a/kernel/tools/build/feature/test-glibc.c
b/kernel/tools/build/feature/test-glibc.c
index
b082034
..
9367f75
100644
(file)
--- a/
kernel/tools/build/feature/test-glibc.c
+++ b/
kernel/tools/build/feature/test-glibc.c
@@
-1,8
+1,19
@@
+#include <stdlib.h>
+
+#if !defined(__UCLIBC__)
#include <gnu/libc-version.h>
#include <gnu/libc-version.h>
+#else
+#define XSTR(s) STR(s)
+#define STR(s) #s
+#endif
int main(void)
{
int main(void)
{
+#if !defined(__UCLIBC__)
const char *version = gnu_get_libc_version();
const char *version = gnu_get_libc_version();
+#else
+ const char *version = XSTR(__GLIBC__) "." XSTR(__GLIBC_MINOR__);
+#endif
return (long)version;
}
return (long)version;
}