1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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)
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)
])
])
],