aboutsummaryrefslogtreecommitdiff
path: root/src/tool_metalink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_metalink.c')
-rw-r--r--src/tool_metalink.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tool_metalink.c b/src/tool_metalink.c
index 1dfe32783..8909397b7 100644
--- a/src/tool_metalink.c
+++ b/src/tool_metalink.c
@@ -23,6 +23,16 @@
#ifdef USE_METALINK
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
+#include <sys/stat.h>
+
+#ifdef HAVE_FCNTL_H
+# include <fcntl.h>
+#endif
+
#include <metalink/metalink_parser.h>
#ifdef USE_SSLEAY