]> git.saurik.com Git - apt.git/commitdiff
note to myself: In case you rename something, make sure that you have
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 13 Dec 2011 00:43:28 +0000 (01:43 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 13 Dec 2011 00:43:28 +0000 (01:43 +0100)
renamed it everywhere as otherwise stuff "magically" starts to fail…

Fixes commit 2209 as the mixture of #define names generates a lovely
compilable but non-functional mixture of gzip usage…

apt-pkg/contrib/fileutl.cc

index 727d3ddb52111a152e5f5225e1be3fce8532c589..25ac5275c2f21d7eaa92df1c0375f4ca8824169b 100644 (file)
@@ -1252,7 +1252,7 @@ bool FileFd::Seek(unsigned long long To)
       return result;
    }
    int res;
-#ifdef USE_ZLIB
+#ifdef APT_USE_ZLIB
    if (d->gz)
       res = gzseek(d->gz,To,SEEK_SET);
    else
@@ -1273,7 +1273,7 @@ bool FileFd::Seek(unsigned long long To)
 bool FileFd::Skip(unsigned long long Over)
 {
    int res;
-#ifdef USE_ZLIB
+#ifdef APT_USE_ZLIB
    if (d->gz != NULL)
       res = gzseek(d->gz,Over,SEEK_CUR);
    else
@@ -1313,7 +1313,7 @@ bool FileFd::Truncate(unsigned long long To)
 unsigned long long FileFd::Tell()
 {
    off_t Res;
-#ifdef USE_ZLIB
+#ifdef APT_USE_ZLIB
    if (d->gz != NULL)
      Res = gztell(d->gz);
    else
@@ -1367,7 +1367,7 @@ unsigned long long FileFd::Size()
       } while(read != 0);
       Seek(0);
    }
-#ifdef USE_ZLIB
+#ifdef APT_USE_ZLIB
    // only check gzsize if we are actually a gzip file, just checking for
    // "gz" is not sufficient as uncompressed files could be opened with
    // gzopen in "direct" mode as well
@@ -1439,7 +1439,7 @@ bool FileFd::Close()
    bool Res = true;
    if ((Flags & AutoClose) == AutoClose)
    {
-#ifdef USE_ZLIB
+#ifdef APT_USE_ZLIB
       if (d != NULL && d->gz != NULL) {
         int const e = gzclose(d->gz);
         // gzdopen() on empty files always fails with "buffer error" here, ignore that