From a30e4db9672df89a68d598b98a340d3d5a825b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 7 Jul 2020 03:48:34 +0000 Subject: fccompat: fix build on Windows without unistd.h https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/access-waccess?view=vs-2019 --- fc-match/fc-match.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fc-match') 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 #include -#include #include #include #include +#ifdef HAVE_UNISTD_H +#include +#endif + #ifdef ENABLE_NLS #include #define _(x) (dgettext(GETTEXT_PACKAGE, x)) -- cgit v1.2.1