diff options
Diffstat (limited to 'src/fcdir.c')
-rw-r--r-- | src/fcdir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fcdir.c b/src/fcdir.c index d6be0bec..bfcdf956 100644 --- a/src/fcdir.c +++ b/src/fcdir.c @@ -289,7 +289,9 @@ FcDirCacheScan (const FcChar8 *dir, FcConfig *config) struct stat dir_stat; const FcChar8 *sysroot = FcConfigGetSysRoot (config); FcChar8 *d; +#ifndef _WIN32 int fd = -1; +#endif if (sysroot) d = FcStrBuildFilename (sysroot, dir, NULL); @@ -353,7 +355,9 @@ FcDirCacheRescan (const FcChar8 *dir, FcConfig *config) FcStrSet *dirs; const FcChar8 *sysroot = FcConfigGetSysRoot (config); FcChar8 *d = NULL; +#ifndef _WIN32 int fd = -1; +#endif cache = FcDirCacheLoad (dir, config, NULL); if (!cache) |