--- zzzz-none-000/linux-4.1.52/tools/build/feature/test-glibc.c 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/tools/build/feature/test-glibc.c 2022-03-02 11:37:14.000000000 +0000 @@ -1,8 +1,28 @@ +#ifdef CONFIG_BCM_KF_MIPS_4350 +#include +#endif + +#ifdef CONFIG_BCM_KF_MIPS_4350 +#if !defined(__UCLIBC__) +#include +#else +#define XSTR(s) STR(s) +#define STR(s) #s +#endif +#else #include +#endif int main(void) { +#ifdef CONFIG_BCM_KF_MIPS_4350 +#if !defined(__UCLIBC__) + const char *version = gnu_get_libc_version(); + #else + const char *version = XSTR(__GLIBC__) "." XSTR(__GLIBC_MINOR__); +#endif +#else const char *version = gnu_get_libc_version(); - - return (long)version; +#endif + return (long)version; }