diff options
Diffstat (limited to 'ace/OS_NS_arpa_inet.cpp')
-rw-r--r-- | ace/OS_NS_arpa_inet.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ace/OS_NS_arpa_inet.cpp b/ace/OS_NS_arpa_inet.cpp index 6d6ffaeb0ee..94c54edfe4f 100644 --- a/ace/OS_NS_arpa_inet.cpp +++ b/ace/OS_NS_arpa_inet.cpp @@ -9,6 +9,8 @@ ACE_RCSID(ace, OS_NS_arpa_inet, "$Id$") # include "ace/OS_NS_arpa_inet.inl" #endif /* ACE_HAS_INLINED_OS_CALLS */ +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + int ACE_OS::inet_aton (const char *host_name, struct in_addr *addr) { @@ -34,7 +36,7 @@ ACE_OS::inet_aton (const char *host_name, struct in_addr *addr) addr->s_addr = ip_addr; // Network byte ordered return 1; } -#elif defined (VXWORKS) +#elif defined (ACE_VXWORKS) && (ACE_VXWORKS <= 0x620) // inet_aton() returns OK (0) on success and ERROR (-1) on failure. // Must reset errno first. Refer to WindRiver SPR# 34949, SPR# 36026 ::errnoSet(0); @@ -66,3 +68,5 @@ ACE_OS::inet_ntoa (const struct in_addr addr) return addrstr; } #endif /* defined (ACE_PSOS) */ + +ACE_END_VERSIONED_NAMESPACE_DECL |