summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-04 20:49:10 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-04 21:06:52 +0200
commitf9de4208b490eb987daaf0dd0c3f9edead204f24 (patch)
tree0c57053fa16b0eb0d301459ad86990e1e6375df6
parentc69e82559b29171f0dfc66abc8ac236d74f7201e (diff)
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
-rw-r--r--apt-private/private-download.cc2
1 files changed, 1 insertions, 1 deletions
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
)