summaryrefslogtreecommitdiff
blob: 4536fc53a2179ddf50b43aa52019f64ea541f263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 9997ad9fcbb0dcef16e4e8224e4238ecdfe56b66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?=
 <Mailaender@users.noreply.github.com>
Date: Sun, 28 Sep 2014 06:38:18 +0200
Subject: [PATCH] always declare O_BINARY

closes #461
---
 src/base/file_handle.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/base/file_handle.cpp b/src/base/file_handle.cpp
index 0ba214e..f336513 100644
--- a/src/base/file_handle.cpp
+++ b/src/base/file_handle.cpp
@@ -21,6 +21,11 @@
 #include <fcntl.h>
 #endif
 
+#ifndef O_BINARY
+#define O_BINARY  0
+#define O_TEXT    0
+#endif
+
 using namespace std;
 
 namespace base {