summaryrefslogtreecommitdiff
path: root/fc-cache
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2020-07-18 17:21:09 +0100
committerTim-Philipp Müller <tim@centricular.com>2020-07-27 13:43:23 +0000
commit03aa12c75e117acb0d160212536f6f832e0dc8d9 (patch)
treec4dfb1113b662b8d0dbe6cd3840b08976c9334c5 /fc-cache
parent9bc88933b23d413885c121d5cf4c78fdeed1edfc (diff)
Guard dirent.h includes
Might not be available on Windows.
Diffstat (limited to 'fc-cache')
-rw-r--r--fc-cache/fc-cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c
index 4138d0b..2e4eeb2 100644
--- a/fc-cache/fc-cache.c
+++ b/fc-cache/fc-cache.c
@@ -41,7 +41,9 @@
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
+#ifdef HAVE_DIRENT_H
#include <dirent.h>
+#endif
#include <string.h>
#include <locale.h>