summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/microdesc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index a0ee4ba5f3..a0e95b66b2 100644
--- a/src/or/microdesc.c
+++ b/src/or/microdesc.c
@@ -33,6 +33,9 @@
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
/** A data structure to hold a bunch of cached microdescriptors. There are
* two active files in the cache: a "cache file" that we mmap, and a "journal