mm, oom: do not rely on TIF_MEMDIE for memory reserves access
[linux/fpc-iii.git] / tools / build / feature / test-glibc.c
blob9367f7586676b850d43410bfc0cb75a4c88816c6
1 #include <stdlib.h>
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
10 int main(void)
12 #if !defined(__UCLIBC__)
13 const char *version = gnu_get_libc_version();
14 #else
15 const char *version = XSTR(__GLIBC__) "." XSTR(__GLIBC_MINOR__);
16 #endif
18 return (long)version;