summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-27 00:31:03 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-27 00:31:03 +0200
commit6a68315e938eb2611806658828ecea86805822e7 (patch)
tree5ff552cf0e6bac9a35bedaf544cb19332663fa70 /apt-private
parent75d238ba66576c04f257e9d7c0a6995721f1441d (diff)
parent01d207a5076b6fc37a064645b13f2c6550f58b94 (diff)
downloadapt-6a68315e938eb2611806658828ecea86805822e7.tar.gz
Merge branch 'portability/freebsd'
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-download.cc7
-rw-r--r--apt-private/private-show.cc1
2 files changed, 8 insertions, 0 deletions
diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc
index c85a49727..d0cbbcf50 100644
--- a/apt-private/private-download.cc
+++ b/apt-private/private-download.cc
@@ -25,7 +25,14 @@
#include <sys/types.h>
#include <pwd.h>
#include <fcntl.h>
+#ifdef HAVE_VFS_H
#include <sys/vfs.h>
+#else
+#ifdef HAVE_PARAMS_H
+#include <sys/params.h>
+#endif
+#include <sys/mount.h>
+#endif
#include <sys/statvfs.h>
#include <sys/stat.h>
#include <errno.h>
diff --git a/apt-private/private-show.cc b/apt-private/private-show.cc
index 03229476e..27338a08c 100644
--- a/apt-private/private-show.cc
+++ b/apt-private/private-show.cc
@@ -24,6 +24,7 @@
#include <apt-private/private-show.h>
#include <stdio.h>
+#include <unistd.h>
#include <ostream>
#include <string>