summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/PlatformInfo.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2019-07-15 05:14:32 -0400
committerBenoit Foucher <benoit@zeroc.com>2019-07-15 11:14:32 +0200
commit2e60ce8af12b12a8c1aed18c7bea2413016d4004 (patch)
tree4f5f578bb99ea4713cbc1d0e57346b6036c70f10 /cpp/src/IceGrid/PlatformInfo.cpp
parentTest script minor warning fixes (diff)
downloadice-2e60ce8af12b12a8c1aed18c7bea2413016d4004.tar.bz2
ice-2e60ce8af12b12a8c1aed18c7bea2413016d4004.tar.xz
ice-2e60ce8af12b12a8c1aed18c7bea2413016d4004.zip
Port to AIX with g++, xlC_r and xlclang++ (#434)
Diffstat (limited to 'cpp/src/IceGrid/PlatformInfo.cpp')
-rw-r--r--cpp/src/IceGrid/PlatformInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/PlatformInfo.cpp b/cpp/src/IceGrid/PlatformInfo.cpp
index 9b265a80eda..5b953d0ebb1 100644
--- a/cpp/src/IceGrid/PlatformInfo.cpp
+++ b/cpp/src/IceGrid/PlatformInfo.cpp
@@ -192,7 +192,7 @@ PlatformInfo::PlatformInfo(const string& prefix,
_last15Total = 0;
#elif defined(_AIX)
struct nlist nl;
- nl.n_name = "avenrun";
+ nl.n_name = const_cast<char*>("avenrun");
nl.n_value = 0;
if(knlist(&nl, 1, sizeof(nl)) == 0)
{
@@ -510,7 +510,7 @@ PlatformInfo::getLoadInfo()
{
long long avenrun[3];
struct nlist nl;
- nl.n_name = "avenrun";
+ nl.n_name = const_cast<char*>("avenrun");
nl.n_value = 0;
if(knlist(&nl, 1, sizeof(nl)) == 0)
{