diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IceGrid/NodeI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/NodeI.cpp b/cpp/src/IceGrid/NodeI.cpp index cf291989f55..4793ed6b22c 100644 --- a/cpp/src/IceGrid/NodeI.cpp +++ b/cpp/src/IceGrid/NodeI.cpp @@ -246,7 +246,7 @@ NodeI::NodeI(const Ice::ObjectAdapterPtr& adapter, _last5Total = 0; _last15Total = 0; #else -#if defined(__linux) +#if defined(__linux) || defined(__sun) _nproc = static_cast<int>(sysconf(_SC_NPROCESSORS_ONLN)); #elif defined(__APPLE__) static int ncpu[2] = { CTL_HW, HW_NCPU }; |