diff options
author | Vincent Torri <vincent dot torri at gmail dot com> | 2015-11-06 19:30:57 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-11-06 10:53:29 -0800 |
commit | a1243410a78c605560309911ccf46f9068c78541 (patch) | |
tree | 822db0967979df557cf4abfd0d929ba825f78c2a /src/bin/efreet | |
parent | ebf6d95ed6de6f90481cc09a5d18f16251c01b76 (diff) | |
download | efl-a1243410a78c605560309911ccf46f9068c78541.tar.gz |
eina/efreet: open file with binary file on Windows
@fix
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/bin/efreet')
-rw-r--r-- | src/bin/efreet/efreet_desktop_cache_create.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/efreet/efreet_desktop_cache_create.c b/src/bin/efreet/efreet_desktop_cache_create.c index db14d46293..399cc81393 100644 --- a/src/bin/efreet/efreet_desktop_cache_create.c +++ b/src/bin/efreet/efreet_desktop_cache_create.c @@ -15,6 +15,10 @@ #include <Ecore.h> #include <Ecore_File.h> +#ifndef O_BINARY +# define O_BINARY 0 +#endif + #define EFREET_MODULE_LOG_DOM _efreet_desktop_cache_log_dom static int _efreet_desktop_cache_log_dom = -1; @@ -207,7 +211,7 @@ cache_lock_file(void) int lockfd; snprintf(file, sizeof(file), "%s/efreet/desktop_data.lock", efreet_cache_home_get()); - lockfd = open(file, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); + lockfd = open(file, O_CREAT | O_BINARY | O_RDWR, S_IRUSR | S_IWUSR); if (lockfd < 0) return -1; efreet_fsetowner(lockfd); |