summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp')
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp b/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp
index 8dadb284ef3..e5c237f1074 100644
--- a/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp
@@ -705,13 +705,10 @@ TAO_IMR_Op_Add::run (void)
// else use the hostname on which tao_imr is run
char hostname[BUFSIZ];
ACE_OS::hostname (hostname, BUFSIZ);
-#if defined (ACE_WIN32)
+
struct hostent *hinfo = ACE_OS::gethostbyname (hostname);
startup_options.location = CORBA::string_dup (hinfo->h_name);
-#else
- startup_options.location = CORBA::string_dup (hostname);
-#endif /* ACE_WIN32 */
}
ACE_DECLARE_NEW_CORBA_ENV;