https://bugs.openldap.org/show_bug.cgi?id=9215
--- Comment #2 from Howard Chu hyc@openldap.org --- Frankly it's stupid that glibc doesn't publish the declaration by default, after all these years that it has been implemented.
In this case I'd rather just put an appropriate #ifdef around it, since this issue only affects a single declaration in a single source file.