summaryrefslogtreecommitdiff
path: root/fc-cache
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2020-07-07 03:48:34 +0000
committerAkira TAGOH <akira@tagoh.org>2020-07-07 03:48:34 +0000
commita30e4db9672df89a68d598b98a340d3d5a825b8e (patch)
tree88b0c07f08d6f481f3261df848193fc1e9bc10c1 /fc-cache
parent97d709e888ae01785755ae6c650458cda732064b (diff)
fccompat: fix build on Windows without unistd.h
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/access-waccess?view=vs-2019
Diffstat (limited to 'fc-cache')
-rw-r--r--fc-cache/fc-cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c
index 091eed4..4138d0b 100644
--- a/fc-cache/fc-cache.c
+++ b/fc-cache/fc-cache.c
@@ -34,7 +34,9 @@
#include <fontconfig/fontconfig.h>
#include <stdio.h>
#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>