Skip to content

Commit

Permalink
On Solaris, _XOPEN_SOURCE should be undefined for C++ sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
Naohisa Goto committed Dec 21, 2020
1 parent 91e2f08 commit 84eebb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -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)
])
])
],
Expand Down

0 comments on commit 84eebb3

Please sign in to comment.