https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100655
--- Comment #1 from Michael de Lang <kingoipo at gmail dot com> --- It'd be fairly trivial to wrap the test in an ifdef: #ifdef __GLIBC__ #if (__GLIBC__ >= 2 && __GLIBC_MINOR__>= 30) || __GLIBC__>= 3 // test here #endif #endif