Explorar el Código

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
Julian Andres Klode hace 10 años
padre
commit
f9de4208b4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      apt-private/private-download.cc

+ 1 - 1
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
 	    )