summaryrefslogtreecommitdiff
path: root/fc-match
diff options
context:
space:
mode:
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))