On Solaris, _XOPEN_SOURCE should be undefined for C++ sources.

This commit is contained in:
Naohisa Goto 2020-12-21 23:08:35 +09:00
parent 91e2f08a6a
commit 84eebb3c9e

View File

@ -1034,6 +1034,8 @@ main()
AC_MSG_RESULT($define_xopen_source) AC_MSG_RESULT($define_xopen_source)
AS_IF([test x"$define_xopen_source" != xno], [ AS_IF([test x"$define_xopen_source" != xno], [
RUBY_APPEND_OPTIONS(CPPFLAGS, -D_XOPEN_SOURCE=$define_xopen_source) 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)
]) ])
]) ])
], ],