Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SERVER-6414 - windows compile part 4

  • Loading branch information...
commit e67589e105d4ed85670e9dd264d0689223d0d324 1 parent c6a40c4
@erh erh authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 db/extsort.cpp
View
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.