summaryrefslogtreecommitdiff
path: root/ACE/ace/INET_Addr.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2006-10-25 09:06:06 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2006-10-25 09:06:06 +0000
commitc8f9ea094b55becd0b58b04871560fffaca495f6 (patch)
tree96adca32259ab039ebeacbc52c1c460c6aff84b4 /ACE/ace/INET_Addr.cpp
parent56832fedcc5f165964f232ec5263f337d1598d70 (diff)
downloadATCD-c8f9ea094b55becd0b58b04871560fffaca495f6.tar.gz
Diffstat (limited to 'ACE/ace/INET_Addr.cpp')
-rw-r--r--ACE/ace/INET_Addr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ACE/ace/INET_Addr.cpp b/ACE/ace/INET_Addr.cpp
index 53c5aada3d5..f51556360ac 100644
--- a/ACE/ace/INET_Addr.cpp
+++ b/ACE/ace/INET_Addr.cpp
@@ -317,9 +317,13 @@ ACE_INET_Addr::set (u_short port_number,
struct in_addr addrv4;
if (ACE_OS::inet_aton (host_name,
&addrv4) == 1)
+# if !defined (ACE_LACKS_NTOHL)
return this->set (port_number,
encode ? ntohl (addrv4.s_addr) : addrv4.s_addr,
encode);
+# else
+ return -1;
+# endif /* ACE_LACKS_NTOHL */
else
{
# if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME)