http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60038
--- Comment #8 from Kostya Serebryany <kcc at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #6) > size_t len = confstr (_CS_GNU_LIBC_VERSION, buf, sizeof buf); > if (strncmp (buf, "glibc 2.", 8) == 0) Yea, such patch is even more welcome. I was thinking about using __gnu_get_libc_version, to extract the libc version numbers, but confstr (_CS_GNU_LIBC_VERSION sounds good too.