]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - tools/build/feature/test-glibc.c
ipv4: convert dst_metrics.refcnt from atomic_t to refcount_t
[mirror_ubuntu-artful-kernel.git] / tools / build / feature / test-glibc.c
CommitLineData
f151f53a
PG
1#include <stdlib.h>
2
3#if !defined(__UCLIBC__)
e12762cf 4#include <gnu/libc-version.h>
f151f53a
PG
5#else
6#define XSTR(s) STR(s)
7#define STR(s) #s
8#endif
e12762cf
IM
9
10int main(void)
11{
f151f53a 12#if !defined(__UCLIBC__)
e12762cf 13 const char *version = gnu_get_libc_version();
f151f53a
PG
14#else
15 const char *version = XSTR(__GLIBC__) "." XSTR(__GLIBC_MINOR__);
16#endif
20c99e82 17
e12762cf
IM
18 return (long)version;
19}