]> git.saurik.com Git - apt.git/commitdiff
apt-private: #ifdef HAVE_STRUCT_STATFS_F_TYPE, not #if
authorJulian Andres Klode <jak@debian.org>
Thu, 4 Aug 2016 18:49:10 +0000 (20:49 +0200)
committerJulian Andres Klode <jak@debian.org>
Thu, 4 Aug 2016 19:06:52 +0000 (21:06 +0200)
While autotools defines all macros to 1 explicitly, CMake only
defines them without a value. In such a case, #if fails with an
error and #ifdef works.

In preparation for a possible switch to CMake and to clean up
the code (rest uses #ifdef), use #ifdef here

apt-private/private-download.cc

index 4ffe78b24234cad292c8af246d26491eb3330927..c85a497274e009535583a6ddc6fda488682eea66 100644 (file)
@@ -143,7 +143,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
            )