summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/UdpTransceiver.h4
-rw-r--r--cpp/src/IceGrid/SessionServantManager.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.h b/cpp/src/Ice/UdpTransceiver.h
index 4898c3cc54c..c1e8900c213 100644
--- a/cpp/src/Ice/UdpTransceiver.h
+++ b/cpp/src/Ice/UdpTransceiver.h
@@ -10,6 +10,10 @@
#ifndef ICE_UDP_TRANSCEIVER_H
#define ICE_UDP_TRANSCEIVER_H
+#ifdef __hpux
+# define _XOPEN_SOURCE_EXTENDED
+#endif
+
#include <Ice/InstanceF.h>
#include <Ice/TraceLevelsF.h>
#include <Ice/LoggerF.h>
diff --git a/cpp/src/IceGrid/SessionServantManager.cpp b/cpp/src/IceGrid/SessionServantManager.cpp
index b2b8577a925..6c15d2cc997 100644
--- a/cpp/src/IceGrid/SessionServantManager.cpp
+++ b/cpp/src/IceGrid/SessionServantManager.cpp
@@ -17,7 +17,7 @@ using namespace IceGrid;
SessionServantManager::SessionServantManager(const Ice::ObjectAdapterPtr& adapter,
const string& instanceName,
- const bool checkConnection,
+ bool checkConnection,
const string& serverAdminCategory,
const Ice::ObjectPtr& serverAdminRouter,
const AdminCallbackRouterPtr& adminCallbackRouter
@@ -110,7 +110,7 @@ SessionServantManager::setSessionControl(const Ice::ObjectPtr& session,
// Allow invocations on the session servants and the given objects.
//
Ice::IdentitySeq allIds = ids;
- allIds.insert(allIds.end(), p->second.identities.begin(), p->second.identities.end());
+ copy(p->second.identities.begin(), p->second.identities.end(), back_inserter(allIds));
p->second.identitySet->add(allIds);
//