diff options
Diffstat (limited to 'TAO/tao/IIOP_Acceptor.cpp')
-rw-r--r-- | TAO/tao/IIOP_Acceptor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/tao/IIOP_Acceptor.cpp b/TAO/tao/IIOP_Acceptor.cpp index 659eff78a96..682bbf03b0b 100644 --- a/TAO/tao/IIOP_Acceptor.cpp +++ b/TAO/tao/IIOP_Acceptor.cpp @@ -17,6 +17,7 @@ #include "ace/OS_NS_string.h" #include "ace/os_include/os_netdb.h" +#include <cstring> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -654,7 +655,7 @@ TAO_IIOP_Acceptor::parse_address (const char *address, specified_hostname.clear(); } - const char *port_separator_loc = ACE_OS::strchr (address, ':'); + const char *port_separator_loc = std::strchr (address, ':'); char tmp_host[MAXHOSTNAMELEN + 1]; tmp_host[0] = '\0'; bool host_defaulted = port_separator_loc == address; @@ -671,7 +672,7 @@ TAO_IIOP_Acceptor::parse_address (const char *address, { // In this case we have to find the end of the numeric address and // start looking for the port separator from there. - char const * const cp_pos = ACE_OS::strchr (address, ']'); + char const * const cp_pos = std::strchr (address, ']'); if (cp_pos == 0) { // No valid IPv6 address specified. |