diff options
author | Jose <jose@zeroc.com> | 2012-08-09 19:48:29 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-08-09 19:48:29 +0200 |
commit | 3b0475ea1ca1529cf9ff67a7acf1f088956fdbb9 (patch) | |
tree | 7dcbdc482dbfb57631cd5f1edb9bf967c3790da5 /cpp/src/IcePatch2/FileServerI.cpp | |
parent | minor fix (diff) | |
download | ice-3b0475ea1ca1529cf9ff67a7acf1f088956fdbb9.tar.bz2 ice-3b0475ea1ca1529cf9ff67a7acf1f088956fdbb9.tar.xz ice-3b0475ea1ca1529cf9ff67a7acf1f088956fdbb9.zip |
minor fixes
Diffstat (limited to 'cpp/src/IcePatch2/FileServerI.cpp')
-rwxr-xr-x | cpp/src/IcePatch2/FileServerI.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/IcePatch2/FileServerI.cpp b/cpp/src/IcePatch2/FileServerI.cpp index 5076329b757..666b8d121de 100755 --- a/cpp/src/IcePatch2/FileServerI.cpp +++ b/cpp/src/IcePatch2/FileServerI.cpp @@ -105,7 +105,13 @@ IcePatch2::FileServerI::getFileCompressed_async(const AMD_FileServer_getFileComp return; } - if(_lseek(fd, static_cast<off_t>(pos), SEEK_SET) != static_cast<off_t>(pos)) + if( +#if defined(_MSC_VER) + _lseek(fd, static_cast<off_t>(pos), SEEK_SET) +#else + lseek(fd, static_cast<off_t>(pos), SEEK_SET) +#endif + != static_cast<off_t>(pos)) { IceUtilInternal::close(fd); |