summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/ecore_evas')
-rw-r--r--src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c b/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c
index 245534fba3..28ffcc31f9 100644
--- a/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c
+++ b/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c
@@ -1,5 +1,9 @@
1#include "ecore_evas_extn_engine.h" 1#include "ecore_evas_extn_engine.h"
2 2
3#ifndef O_BINARY
4# define O_BINARY 0
5#endif
6
3struct _Extnbuf 7struct _Extnbuf
4{ 8{
5 const char *file, *lock; 9 const char *file, *lock;
@@ -165,7 +169,7 @@ _extnbuf_lock_file_set(Extnbuf *b, const char *file)
165 } 169 }
166 b->lock = eina_stringshare_add(file); 170 b->lock = eina_stringshare_add(file);
167 if (!b->lock) goto err; 171 if (!b->lock) goto err;
168 b->lockfd = open(b->lock, O_RDWR); 172 b->lockfd = open(b->lock, O_RDWR | O_BINARY);
169 if (b->lockfd >= 0) return EINA_TRUE; 173 if (b->lockfd >= 0) return EINA_TRUE;
170err: 174err:
171 if (b->lock) eina_stringshare_del(b->lock); 175 if (b->lock) eina_stringshare_del(b->lock);