diff options
Diffstat (limited to 'cpp/src/IceGrid/FileCache.cpp')
-rw-r--r-- | cpp/src/IceGrid/FileCache.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/FileCache.cpp b/cpp/src/IceGrid/FileCache.cpp index 5c21387a1b7..d5a0cd30692 100644 --- a/cpp/src/IceGrid/FileCache.cpp +++ b/cpp/src/IceGrid/FileCache.cpp @@ -70,7 +70,11 @@ FileCache::getOffsetFromEnd(const string& file, int originalCount) // deque<string> lines; int count = originalCount - totalCount; // Number of lines left to find. +#ifdef __sun while(is.good() && is.tellg() < static_cast<streampos>(lastBlockOffset)) +#else + while(is.good() && is.tellg() < lastBlockOffset) +#endif { getline(is, line); |