summaryrefslogtreecommitdiff
path: root/libs/system
diff options
context:
space:
mode:
Diffstat (limited to 'libs/system')
-rw-r--r--libs/system/src/error_code.cpp3
-rw-r--r--libs/system/test/Jamfile.v21
2 files changed, 3 insertions, 1 deletions
diff --git a/libs/system/src/error_code.cpp b/libs/system/src/error_code.cpp
index bcdbea9cfd..6772d154ea 100644
--- a/libs/system/src/error_code.cpp
+++ b/libs/system/src/error_code.cpp
@@ -74,7 +74,7 @@ namespace
// strerror_r is preferred because it is always thread safe,
// however, we fallback to strerror in certain cases because:
// -- Windows doesn't provide strerror_r.
- // -- HP and Sundo provide strerror_r on newer systems, but there is
+ // -- HP and Sun do provide strerror_r on newer systems, but there is
// no way to tell if is available at runtime and in any case their
// versions of strerror are thread safe anyhow.
// -- Linux only sometimes provides strerror_r.
@@ -84,6 +84,7 @@ namespace
# if defined(BOOST_WINDOWS_API) || defined(__hpux) || defined(__sun)\
|| (defined(__linux) && (!defined(__USE_XOPEN2K) || defined(BOOST_SYSTEM_USE_STRERROR)))\
|| (defined(__osf__) && !defined(_REENTRANT))\
+ || (defined(__INTEGRITY))\
|| (defined(__vms))\
|| (defined(__QNXNTO__))
const char * c_str = std::strerror( ev );
diff --git a/libs/system/test/Jamfile.v2 b/libs/system/test/Jamfile.v2
index 043a36f98b..1ab7442b55 100644
--- a/libs/system/test/Jamfile.v2
+++ b/libs/system/test/Jamfile.v2
@@ -16,6 +16,7 @@ project
lib throw_test
: throw_test.cpp
: <link>shared:<define>BOOST_SYSTEM_DYN_LINK=1
+ <link>static:<define>BOOST_SYSTEM_STATIC_LINK=1
;