diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-07-11 19:08:37 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-07-11 19:09:10 -0400 |
commit | e67589e105d4ed85670e9dd264d0689223d0d324 (patch) | |
tree | 20c88bc04bfd6b830b47990ccff0a35315670b93 | |
parent | c6a40c4423762f742bc5f643b169b1bbc612ee3b (diff) | |
download | mongo-e67589e105d4ed85670e9dd264d0689223d0d324.tar.gz |
SERVER-6414 - windows compile part 4
-rw-r--r-- | db/extsort.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/db/extsort.cpp b/db/extsort.cpp index ec91bb749e4..1cb59bf4043 100644 --- a/db/extsort.cpp +++ b/db/extsort.cpp @@ -250,11 +250,16 @@ namespace mongo { } +#if defined(_WIN32) + static inline int win_read(int fd, const void *data, int count) { return _read(fd, data, count); } +#endif + + bool BSONObjExternalSorter::FileIterator::_read( char* buf, long long count ) { long long total = 0; while ( total < count ) { #ifdef _WIN32 - long long now = ::_read( _file, buf, count ); + long long now = win_read( _file, buf, count ); #else long long now = ::read( _file, buf, count ); #endif |