https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92688
--- Comment #8 from SODA Noriyuki <soda-gnu at yuruyuru dot net> --- > Libstdc++ cannot define _XOPEN_SOURCE though, > because it could conflict with something the user defines. Yeah, it has similar problem with _GNU_SOURCE, _XOPEN_SOURCE is only closer to what it should be. > The correct fix is for glibc to expose the required names > by some other method (a "backdoor" just for libstdc++) > and not require any feature macros that users should be able to control. I understand. > I still plan to fix this, but it's not a top priority. I hope you'll have some spare time to do so in near future ;-) Thanks for taking you time to explain the issues.