diff options
author | Evan Martin <martine@danga.com> | 2011-05-02 02:37:41 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-05-02 02:37:41 (GMT) |
commit | 2ca4e98e86d6b4a3879842468c9e3fd4745f8fe4 (patch) | |
tree | 83cb94d10cd01bd6c22df9c285b330439c1037d5 /src/build_log.cc | |
parent | d7bd4a2367046ee0458123051d9cbdc465d022d1 (diff) | |
download | Ninja-2ca4e98e86d6b4a3879842468c9e3fd4745f8fe4.zip Ninja-2ca4e98e86d6b4a3879842468c9e3fd4745f8fe4.tar.gz Ninja-2ca4e98e86d6b4a3879842468c9e3fd4745f8fe4.tar.bz2 |
windows: use portable replacement of setlinebuf()
Diffstat (limited to 'src/build_log.cc')
-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 c2e39d2..66b85a9 100644 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -47,7 +47,7 @@ bool BuildLog::OpenForWrite(const string& path, string* err) { *err = strerror(errno); return false; } - setlinebuf(log_file_); + setvbuf(log_file_, NULL, _IOLBF, 0); return true; } |