aboutsummaryrefslogtreecommitdiffstats
path: root/src/data-compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data-compat.c')
-rw-r--r--src/data-compat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/data-compat.c b/src/data-compat.c
index 0843ffd4..bf615386 100644
--- a/src/data-compat.c
+++ b/src/data-compat.c
@@ -26,7 +26,9 @@
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
-#include <sys/stat.h>
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
#include <stdlib.h>
#include "data.h"