summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/FileServerI.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2012-08-09 19:48:29 +0200
committerJose <jose@zeroc.com>2012-08-09 19:48:29 +0200
commit3b0475ea1ca1529cf9ff67a7acf1f088956fdbb9 (patch)
tree7dcbdc482dbfb57631cd5f1edb9bf967c3790da5 /cpp/src/IcePatch2/FileServerI.cpp
parentminor fix (diff)
downloadice-3b0475ea1ca1529cf9ff67a7acf1f088956fdbb9.tar.bz2
ice-3b0475ea1ca1529cf9ff67a7acf1f088956fdbb9.tar.xz
ice-3b0475ea1ca1529cf9ff67a7acf1f088956fdbb9.zip
minor fixes
Diffstat (limited to 'cpp/src/IcePatch2/FileServerI.cpp')
-rwxr-xr-xcpp/src/IcePatch2/FileServerI.cpp8
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);