You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-games/aseprite/files/aseprite-1.0.6-obinary.patch

28 lines
638 B

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 {