diff options
Diffstat (limited to 'src/hbtree/hbtree.cpp')
| -rw-r--r-- | src/hbtree/hbtree.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hbtree/hbtree.cpp b/src/hbtree/hbtree.cpp index fc1dabf4..a3873557 100644 --- a/src/hbtree/hbtree.cpp +++ b/src/hbtree/hbtree.cpp @@ -2967,6 +2967,9 @@ bool HBtree::open() return false; int oflags = d->openMode_ == ReadOnly ? O_RDONLY : O_RDWR | O_CREAT; +#ifdef Q_OS_WIN32 + oflags |= _O_BINARY; // otherwise write() does crlf conversions +#endif int fd = ::open(d->fileName_.toLatin1(), oflags, 0644); if (fd == -1) { |
