summaryrefslogtreecommitdiff
path: root/ace/OS_NS_string.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_NS_string.inl')
-rw-r--r--ace/OS_NS_string.inl10
1 files changed, 10 insertions, 0 deletions
diff --git a/ace/OS_NS_string.inl b/ace/OS_NS_string.inl
index cb3ee4ec3c6..13168942e68 100644
--- a/ace/OS_NS_string.inl
+++ b/ace/OS_NS_string.inl
@@ -166,6 +166,16 @@ ACE_OS::strcspn (const wchar_t *s, const wchar_t *reject)
}
#endif /* ACE_HAS_WCHAR */
+ACE_INLINE char *
+ACE_OS::strerror (int errnum)
+{
+#if defined (ACE_LACKS_STRERROR)
+ return ACE_OS::strerror_emulation (errnum);
+#else /* ACE_LACKS_STRERROR */
+ return ::strerror (errnum);
+#endif /* ACE_LACKS_STRERROR */
+}
+
ACE_INLINE size_t
ACE_OS::strlen (const char *s)
{