summaryrefslogtreecommitdiff
path: root/src/fcstat.c
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 /src/fcstat.c
parent9bc88933b23d413885c121d5cf4c78fdeed1edfc (diff)
downloadfontconfig-03aa12c75e117acb0d160212536f6f832e0dc8d9.tar.gz
Guard dirent.h includes
Might not be available on Windows.
Diffstat (limited to 'src/fcstat.c')
-rw-r--r--src/fcstat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fcstat.c b/src/fcstat.c
index 5aa1643..5a2bd7c 100644
--- a/src/fcstat.c
+++ b/src/fcstat.c
@@ -22,7 +22,9 @@
*/
#include "fcint.h"
#include "fcarch.h"
+#ifdef HAVE_DIRENT_H
#include <dirent.h>
+#endif
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>