diff options
Diffstat (limited to 'cpp/src/IceGrid/PlatformInfo.cpp')
-rw-r--r-- | cpp/src/IceGrid/PlatformInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/PlatformInfo.cpp b/cpp/src/IceGrid/PlatformInfo.cpp index 320181cfaa3..92f98729301 100644 --- a/cpp/src/IceGrid/PlatformInfo.cpp +++ b/cpp/src/IceGrid/PlatformInfo.cpp @@ -19,6 +19,7 @@ #include <set> #include <climits> +#include <fstream> #if defined(_WIN32) # include <pdhmsg.h> // For PDH_MORE_DATA @@ -300,7 +301,7 @@ PlatformInfo::PlatformInfo(const string& prefix, #if defined(_WIN32) _nProcessorSockets = getSocketCount(_traceLevels->logger); #elif defined(__linux) - IceUtilInternal::ifstream is(string("/proc/cpuinfo")); + ifstream is("/proc/cpuinfo"); set<string> ids; int nprocessor = 0; |