https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761
--- Comment #3 from Florian Weimer <fw at gcc dot gnu.org> --- (In reply to rguent...@suse.de from comment #2) > I think as there are already quite some __GLIBC_PREREQ uses in the > sanitizer lib changing the above prototype appropriately would be > good enough. If that's the way to go, then your patch should work. I'd add a comment: /* glibc 2.27 changed internal ABI and removed internal_function. */ And perhaps the condition can be simplified to: #if defined (__i386__) && defined (__GLIBC_PREREQ) && !__GLIBC_PREREQ(2, 27)