efl: add binary mode to open() calls

This allows better compatibility with Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Vincent Torri 2015-12-03 11:42:08 +01:00 committed by Cedric BAIL
parent dad8627da8
commit d032abcdd4
1 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,10 @@
#include <Ecore.h>
#include <Ecore_Con.h>
#ifndef O_BINARY
# define O_BINARY 0
#endif
struct _request
{
long size;
@ -68,7 +72,7 @@ main(int argc, const char *argv[])
return -1;
}
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0644);
fd = open(filename, O_CREAT | O_BINARY | O_WRONLY | O_TRUNC, 0644);
if (fd == -1)
{