https://bugs.openldap.org/show_bug.cgi?id=9215
--- Comment #9 from Ryan Tandy ryan@openldap.org --- (In reply to Konstantin Andreev from comment #8)
Have you built openldap on Solaris 11 with the old gcc that does not set __STDC__ properly?
Solaris 11.4, Solaris Studio 12.6. Did not try gcc yet.
(In reply to Ryan Tandy from comment #7)
Commits: e9543da9 by Ryan Tandy at 2020-04-23T13:19:33-07:00 ITS#9215 Define _XOPEN_SOURCE for glibc only
Works for me.
Great. Thanks for confirming!