https://bugs.openldap.org/show_bug.cgi?id=9215
--- Comment #8 from Konstantin Andreev grapvar@gmail.com --- (In reply to Ryan Tandy from comment #5)
Confirmed on Solaris 10, but Solaris 11 seems to be fine with it as-is.
This hit me on
$ cat /etc/release Oracle Solaris 11.3 X86 Copyright (c) 1983, 2015, Oracle and/or its affiliates. All rights reserved. Assembled 06 October 2015
Have you built openldap on Solaris 11 with the old gcc that does not set __STDC__ properly?
(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.