Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/telegram-purple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjentsch <mtthsjntsch@gmail.com>2015-11-21 11:42:38 +0300
committermjentsch <mtthsjntsch@gmail.com>2015-11-21 11:42:53 +0300
commit5d52fce666230b6632c20dcebb82f424c2e34f9a (patch)
tree597cd6b1be450dd45ef4e096697653fb2041e088 /telegram-base.c
parent2fc4f5383183e4a8f1906a953172dca54ad4c92b (diff)
Fix compilation on Unix
Diffstat (limited to 'telegram-base.c')
-rw-r--r--telegram-base.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/telegram-base.c b/telegram-base.c
index 39479a5..148f0ad 100644
--- a/telegram-base.c
+++ b/telegram-base.c
@@ -46,6 +46,12 @@
#include "tgp-request.h"
#include "lodepng/lodepng.h"
+
+// O_BINARY exists on windows and must be defined, but doesn't exist on unix-based systems
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
#define DC_SERIALIZED_MAGIC 0x868aa81d
#define STATE_FILE_MAGIC 0x28949a93
#define SECRET_CHAT_FILE_MAGIC 0x37a1988a