From f9de4208b490eb987daaf0dd0c3f9edead204f24 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 4 Aug 2016 20:49:10 +0200 Subject: apt-private: #ifdef HAVE_STRUCT_STATFS_F_TYPE, not #if 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-private/private-download.cc') diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index 4ffe78b24..c85a49727 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -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 ) -- cgit v1.2.3-70-g09d2