diff options
Diffstat (limited to 'boost/log/detail/config.hpp')
-rw-r--r-- | boost/log/detail/config.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/boost/log/detail/config.hpp b/boost/log/detail/config.hpp index 8db321baad..cb2f6d365b 100644 --- a/boost/log/detail/config.hpp +++ b/boost/log/detail/config.hpp @@ -116,6 +116,19 @@ # define BOOST_LOG_NO_ASIO #endif +#if defined(__VXWORKS__) +# define BOOST_LOG_NO_GETPGRP +# define BOOST_LOG_NO_GETSID + // for _WRS_CONFIG_USER_MANAGEMENT used below +# include <vsbConfig.h> +#endif + +#if (!defined(__CRYSTAX__) && defined(__ANDROID__) && (__ANDROID_API__+0) < 21) \ + || (defined(__VXWORKS__) && !defined(_WRS_CONFIG_USER_MANAGEMENT)) +// Until Android API version 21 Google NDK does not provide getpwuid_r +# define BOOST_LOG_NO_GETPWUID_R +#endif + #if !defined(BOOST_LOG_USE_NATIVE_SYSLOG) && defined(BOOST_LOG_NO_ASIO) # ifndef BOOST_LOG_WITHOUT_SYSLOG # define BOOST_LOG_WITHOUT_SYSLOG @@ -297,8 +310,14 @@ #ifndef BOOST_LOG_CPU_CACHE_LINE_SIZE //! The macro defines the CPU cache line size for the target architecture. This is mostly used for optimization. +#if defined(__s390__) || defined(__s390x__) +#define BOOST_LOG_CPU_CACHE_LINE_SIZE 256 +#elif defined(powerpc) || defined(__powerpc__) || defined(__ppc__) +#define BOOST_LOG_CPU_CACHE_LINE_SIZE 128 +#else #define BOOST_LOG_CPU_CACHE_LINE_SIZE 64 #endif +#endif namespace boost { |