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:
parent
91e2f08a6a
commit
84eebb3c9e
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
])
|
||||
])
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue