|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84817 - trunk/libs/log/src
From: andrey.semashev_at_[hidden]
Date: 2013-06-17 17:02:19
Author: andysem
Date: 2013-06-17 17:02:19 EDT (Mon, 17 Jun 2013)
New Revision: 84817
URL: http://svn.boost.org/trac/boost/changeset/84817
Log:
Hopefully, fixed compilation on Solaris 10. Refs #8703.
Text files modified:
trunk/libs/log/src/threadsafe_queue.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Modified: trunk/libs/log/src/threadsafe_queue.cpp
==============================================================================
--- trunk/libs/log/src/threadsafe_queue.cpp Mon Jun 17 16:07:13 2013 (r84816)
+++ trunk/libs/log/src/threadsafe_queue.cpp 2013-06-17 17:02:19 EDT (Mon, 17 Jun 2013) (r84817)
@@ -53,8 +53,11 @@
#define BOOST_LOG_HAS_POSIX_MEMALIGN 1
#endif
#elif (defined(_POSIX_VERSION) && (_POSIX_VERSION >= 200112L)) || (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600))
+// Solaris 10 does not have posix_memalign. Solaris 11 and later seem to have it.
+#if !(defined(sun) || defined(__sun)) || defined(__SunOS_5_11) || defined(__SunOS_5_12)
#define BOOST_LOG_HAS_POSIX_MEMALIGN 1
#endif
+#endif
#if defined(BOOST_WINDOWS)
#include <malloc.h> // _aligned_malloc, _aligned_free
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk