From bc001595302ee63f0c1a4c07a6e15f04ec7143eb Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 29 May 2014 22:31:16 +0200 Subject: [PATCH] Fix compilation on Solaris after last boost upgrade. --- boost/boost/predef/architecture/sparc.h | 2 +- configure.ac | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/boost/boost/predef/architecture/sparc.h b/boost/boost/predef/architecture/sparc.h index 30207a052b..0faa9d4958 100644 --- a/boost/boost/predef/architecture/sparc.h +++ b/boost/boost/predef/architecture/sparc.h @@ -37,7 +37,7 @@ http://www.boost.org/LICENSE_1_0.txt) # if !defined(BOOST_ARCH_SPARC) && defined(__sparcv8) # define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER(8,0,0) # endif -# if !defined(BOOST_ARCH_SPARC) && +# if !defined(BOOST_ARCH_SPARC) # define BOOST_ARCH_SPARC BOOST_VERSION_NUMBER_AVAILABLE # endif #endif diff --git a/configure.ac b/configure.ac index a3d699db4e..9b87677294 100644 --- a/configure.ac +++ b/configure.ac @@ -295,6 +295,12 @@ char * strerror(int n); # define BOOST_POSIX_PATH 1 #endif +#ifdef __sparc__ +# ifndef __BIG_ENDIAN__ +# define __BIG_ENDIAN__ 1 +# endif +#endif + #if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 # define USE_WCHAR_T #endif