diff options
Diffstat (limited to 'dev-games/aseprite/files/aseprite-1.0.6-obinary.patch')
-rw-r--r-- | dev-games/aseprite/files/aseprite-1.0.6-obinary.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-games/aseprite/files/aseprite-1.0.6-obinary.patch b/dev-games/aseprite/files/aseprite-1.0.6-obinary.patch new file mode 100644 index 000000000000..4536fc53a217 --- /dev/null +++ b/dev-games/aseprite/files/aseprite-1.0.6-obinary.patch @@ -0,0 +1,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 { |