summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-19 23:42:02 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-19 23:42:02 -0800
commitc740946b5871745e72444136fd229304c9658b41 (patch)
tree12e910bcf318e9f5f96a9f427716b90f8e5bfe3a /src
parent1fa5b7d41ad3ad3991852515ace597d4cae909b1 (diff)
Fixing Output's open.
Diffstat (limited to 'src')
-rw-r--r--src/Output.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Output.cc b/src/Output.cc
index 261884e..0d5972d 100644
--- a/src/Output.cc
+++ b/src/Output.cc
@@ -40,7 +40,7 @@ class AsyncOpOpen : public Balau::AsyncOperation {
AsyncOpOpen(const char * path, bool truncate, cbResults_t * results) : m_path(path), m_truncate(truncate), m_results(results) { }
virtual void run() {
#ifdef _MSC_VER
- const ssize_t r = m_results->result = _open(m_path, O_WRONLY | O_CREAT | (m_truncate ? O_TRUNC : 0), 0755);
+ const ssize_t r = m_results->result = _open(m_path, O_WRONLY | O_CREAT | (m_truncate ? O_TRUNC : 0) | O_BINARY, 0755);
#else
const ssize_t r = m_results->result = open(m_path, O_WRONLY | O_CREAT | (m_truncate ? O_TRUNC : 0), 0755);
#endif