From 84eebb3c9e92d33055393d32a276e11f3e1afd3f Mon Sep 17 00:00:00 2001 From: Naohisa Goto Date: Mon, 21 Dec 2020 23:08:35 +0900 Subject: [PATCH] On Solaris, _XOPEN_SOURCE should be undefined for C++ sources. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index dbd08321bd..c3157ff0fd 100644 --- a/configure.ac +++ b/configure.ac @@ -1034,6 +1034,8 @@ main() AC_MSG_RESULT($define_xopen_source) AS_IF([test x"$define_xopen_source" != xno], [ RUBY_APPEND_OPTIONS(CPPFLAGS, -D_XOPEN_SOURCE=$define_xopen_source) + # _XOPEN_SOURCE should not be defined for C++ on Solaris. + RUBY_APPEND_OPTIONS(CXXFLAGS, -U_XOPEN_SOURCE) ]) ]) ],