Re: [PATCH] cache.h: auto-detect if zlib has uncompress2()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 17, 2022 at 11:49 AM René Scharfe <l.s.r@xxxxxx> wrote:
>
> Am 17.01.22 um 18:13 schrieb Ævar Arnfjörð Bjarmason:
> > diff --git a/compat/zlib-uncompress2.c b/compat/zlib-uncompress2.c
> > index 722610b9718..915796e85ac 100644
> > --- a/compat/zlib-uncompress2.c
> > +++ b/compat/zlib-uncompress2.c
> > @@ -8,15 +8,12 @@
> >
> >  */
> >
> > -#include "../reftable/system.h"
> > -#define z_const
>
> Why is it safe to remove this definition?
> Because it's defined in
> zconf.h, included by zlib.h.  But why did we need it in the first place?

because really old versions of zlib don't have it defined in zconf.h,
and therefore the "compat" code would fail to build.

Carlo




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux