X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/fd78974020e23679e9e810cf01dc5c8f3012bb8a..1e33fb4ac68db5c2630de72d222d9dc10eb93272:/apt-private/private-download.cc diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index 4ffe78b24..d0cbbcf50 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -25,7 +25,14 @@ #include #include #include +#ifdef HAVE_VFS_H #include +#else +#ifdef HAVE_PARAMS_H +#include +#endif +#include +#endif #include #include #include @@ -143,7 +150,7 @@ bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long Fet { struct statfs Stat; if (statfs(Dir.c_str(),&Stat) != 0 -#if HAVE_STRUCT_STATFS_F_TYPE +#ifdef HAVE_STRUCT_STATFS_F_TYPE || Stat.f_type != RAMFS_MAGIC #endif )