summaryrefslogtreecommitdiff
path: root/fc-match
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-match
parent97d709e888ae01785755ae6c650458cda732064b (diff)
downloadfontconfig-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.c5
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))