summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-12-03 10:52:56 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-12-05 21:05:23 +0100
commit4f242fb48a5cf18b6e5ea6598681486abf791771 (patch)
tree046ab329439ee52df73ffefdf1657fb006b4a7c5 /src/lib
parent3b44645363dcdd561edd9610a64f3d2c382753a9 (diff)
efl: add binary mode to fdopen() calls
This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/edje/edje_edit.c2
-rw-r--r--src/lib/elua/cache.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index f714fc3a3f..f4f282a83a 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -10156,7 +10156,7 @@ _edje_edit_embryo_rebuild(Edje_Edit *eed)
10156 if (fd < 0) 10156 if (fd < 0)
10157 return EINA_FALSE; /* FIXME: report something */ 10157 return EINA_FALSE; /* FIXME: report something */
10158 10158
10159 f = fdopen(fd, "w"); 10159 f = fdopen(fd, "wb");
10160 if (!f) 10160 if (!f)
10161 { 10161 {
10162 close(fd); 10162 close(fd);
diff --git a/src/lib/elua/cache.c b/src/lib/elua/cache.c
index 99d7b6a220..d03d9bfb94 100644
--- a/src/lib/elua/cache.c
+++ b/src/lib/elua/cache.c
@@ -80,7 +80,7 @@ bc_tmp_open(const char *fname, char *buf, size_t buflen)
80#endif 80#endif
81 if (fd < 0) 81 if (fd < 0)
82 return NULL; 82 return NULL;
83 return fdopen(fd, "w"); 83 return fdopen(fd, "wb");
84} 84}
85 85
86static void 86static void