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-match | |
parent | 97d709e888ae01785755ae6c650458cda732064b (diff) | |
download | fontconfig-a30e4db9672df89a68d598b98a340d3d5a825b8e.tar.gz |
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-match')
-rw-r--r-- | fc-match/fc-match.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fc-match/fc-match.c b/fc-match/fc-match.c index dee6147..4362ec1 100644 --- a/fc-match/fc-match.c +++ b/fc-match/fc-match.c @@ -33,11 +33,14 @@ #include <fontconfig/fontconfig.h> #include <stdio.h> -#include <unistd.h> #include <stdlib.h> #include <string.h> #include <locale.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + #ifdef ENABLE_NLS #include <libintl.h> #define _(x) (dgettext(GETTEXT_PACKAGE, x)) |