aboutsummaryrefslogtreecommitdiff
path: root/fontconfig/src/fccache.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-01-08 09:23:42 +0100
committermarha <marha@users.sourceforge.net>2013-01-08 09:23:42 +0100
commit8a26872f0c9102cb357345eca24a4bf7401bbe70 (patch)
treeb12a3cd7065de4d4a717ddde3d56345d012a55b7 /fontconfig/src/fccache.c
parent034d6305a11c9d5dff9318aa897073402d08d705 (diff)
downloadvcxsrv-8a26872f0c9102cb357345eca24a4bf7401bbe70.tar.gz
vcxsrv-8a26872f0c9102cb357345eca24a4bf7401bbe70.tar.bz2
vcxsrv-8a26872f0c9102cb357345eca24a4bf7401bbe70.zip
fontconfig mesa git update 8 jan 2013
fontconfig: 4e6c7d0827c5b3b20205521bf9bd2e94e704b36d mesa: a60c567fcf29f5d2a41222a8826fee2cb0eb4458
Diffstat (limited to 'fontconfig/src/fccache.c')
-rw-r--r--fontconfig/src/fccache.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fontconfig/src/fccache.c b/fontconfig/src/fccache.c
index 2f1104f25..ddcf07030 100644
--- a/fontconfig/src/fccache.c
+++ b/fontconfig/src/fccache.c
@@ -156,7 +156,7 @@ FcDirCacheOpenFile (const FcChar8 *cache_file, struct stat *file_stat)
if (FcStat (cache_file, file_stat) < 0)
return -1;
#endif
- fd = open((char *) cache_file, O_RDONLY | O_BINARY);
+ fd = FcOpen((char *) cache_file, O_RDONLY | O_BINARY);
if (fd < 0)
return fd;
#ifndef _WIN32
@@ -876,6 +876,7 @@ bail1:
#ifdef _WIN32
+#include <direct.h>
#define mkdir(path,mode) _mkdir(path)
#endif
@@ -977,7 +978,7 @@ FcDirCacheWrite (FcCache *cache, FcConfig *config)
if (!FcAtomicLock (atomic))
goto bail3;
- fd = open((char *)FcAtomicNewFile (atomic), O_RDWR | O_CREAT | O_BINARY, 0666);
+ fd = FcOpen((char *)FcAtomicNewFile (atomic), O_RDWR | O_CREAT | O_BINARY, 0666);
if (fd == -1)
goto bail4;
@@ -1455,7 +1456,7 @@ FcDirCacheCreateTagFile (const FcChar8 *cache_dir)
goto bail1;
if (!FcAtomicLock (atomic))
goto bail2;
- fd = open((char *)FcAtomicNewFile (atomic), O_RDWR | O_CREAT, 0644);
+ fd = FcOpen((char *)FcAtomicNewFile (atomic), O_RDWR | O_CREAT, 0644);
if (fd == -1)
goto bail3;
fp = fdopen(fd, "wb");