Commit f0d5f791 authored by Skip Montanaro's avatar Skip Montanaro

Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition

warning from GCC.  Closes patch #1006629.
parent 8d3b9dd0
This diff is collapsed.
......@@ -170,8 +170,18 @@ esac
if test $define_xopen_source = yes
then
AC_DEFINE(_XOPEN_SOURCE, 600,
Define to the level of X/Open that your system supports)
# On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
# defined precisely as g++ defines it
case $ac_sys_system/$ac_sys_release in
SunOS/5.8|SunOS/5.9)
AC_DEFINE(_XOPEN_SOURCE, 500,
Define to the level of X/Open that your system supports)
;;
*)
AC_DEFINE(_XOPEN_SOURCE, 600,
Define to the level of X/Open that your system supports)
;;
esac
# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
# definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment