diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2020-07-07 03:48:34 +0000 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2020-07-07 03:48:34 +0000 |
commit | a30e4db9672df89a68d598b98a340d3d5a825b8e (patch) | |
tree | 88b0c07f08d6f481f3261df848193fc1e9bc10c1 /fc-cache | |
parent | 97d709e888ae01785755ae6c650458cda732064b (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.c | 2 |
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> |