diff options
author | Philip Craig <philip@pobox.com> | 2011-05-28 08:28:01 (GMT) |
---|---|---|
committer | Philip Craig <philip@pobox.com> | 2011-05-28 08:28:01 (GMT) |
commit | 41a4e2604ba4a4add4dc5f2fd6213ef5c2243ca4 (patch) | |
tree | 6324a5ae48a17f8fc77d5bce1a01888dbf22c528 /src/build_log.cc | |
parent | 511613ce2552528c00719ca59c8b2411518f12db (diff) | |
download | Ninja-41a4e2604ba4a4add4dc5f2fd6213ef5c2243ca4.zip Ninja-41a4e2604ba4a4add4dc5f2fd6213ef5c2243ca4.tar.gz Ninja-41a4e2604ba4a4add4dc5f2fd6213ef5c2243ca4.tar.bz2 |
Tests now build on a native Windows build (tested with VS2010)
All tests except SubProcess pass on a native Windows build
Tests continue not to build on a platform=mingw build
Diffstat (limited to 'src/build_log.cc')
-rwxr-xr-x[-rw-r--r--] | src/build_log.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_log.cc b/src/build_log.cc index 3073f7f..8c45c77 100644..100755 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -54,7 +54,7 @@ bool BuildLog::OpenForWrite(const string& path, string* err) { *err = strerror(errno); return false; } - setvbuf(log_file_, NULL, _IOLBF, 0); + setvbuf(log_file_, NULL, _IOLBF, BUFSIZ); if (ftell(log_file_) == 0) { if (fwrite(kFileSignature, sizeof(kFileSignature) - 1, 1, log_file_) < 1) { |