summaryrefslogtreecommitdiff
path: root/TAO/tao/default_resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/default_resource.cpp')
-rw-r--r--TAO/tao/default_resource.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/TAO/tao/default_resource.cpp b/TAO/tao/default_resource.cpp
index 59f2cd93332..b53e516d9ac 100644
--- a/TAO/tao/default_resource.cpp
+++ b/TAO/tao/default_resource.cpp
@@ -4,6 +4,7 @@
#include "tao/debug.h"
#include "tao/IIOP_Factory.h"
+#include "tao/Protocol_Factory.h"
#include "tao/Acceptor_Registry.h"
#include "tao/Connector_Registry.h"
#include "tao/Reactive_Flushing_Strategy.h"
@@ -25,7 +26,6 @@
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_strings.h"
-
ACE_RCSID (tao,
default_resource,
"$Id$")
@@ -546,6 +546,7 @@ TAO_Default_Resource_Factory::add_to_ior_parser_names (const char *curarg)
int
TAO_Default_Resource_Factory::load_default_protocols (void)
{
+#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)
// If the user did not list any protocols in her svc.conf file
// then default to TAO's basic protocols.
// You do *NOT* need modify this code to add your own protocol,
@@ -581,7 +582,7 @@ TAO_Default_Resource_Factory::load_default_protocols (void)
// If a protocol factory is obtained from the Service
// Configurator then do not transfer ownership to the
// TAO_Protocol_Item.
- int transfer_ownership = 0;
+ bool transfer_ownership = false;
protocol_factory =
ACE_Dynamic_Service<TAO_Protocol_Factory>::instance ("IIOP_Factory");
@@ -604,11 +605,12 @@ TAO_Default_Resource_Factory::load_default_protocols (void)
protocol_factory,
TAO_Protocol_Factory);
- transfer_ownership = 1;
+ transfer_ownership = true;
+
}
else
{
- transfer_ownership = 0;
+ transfer_ownership = false;
}
ACE_NEW_RETURN (item,
@@ -648,6 +650,8 @@ TAO_Default_Resource_Factory::load_default_protocols (void)
ACE_TEXT ("protocol <IIOP_Factory>\n")));
}
+#endif /* TAO_HAS_IIOP && TAO_HAS_IIOP != 0 */
+
return 0;
}