Archive Index This month's Index

Subject: Re: Multilib issue with c-ares

Re: Multilib issue with c-ares

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 27 Aug 2013 13:39:01 +0200 (CEST)

On Tue, 27 Aug 2013, Jakub Hrozek wrote:

>> Now that patch doesn't apply any longer and when I fix it manually it still
>> causes a compiler warning since there's now code using CARES_SIZEOF_LONG. I
>> assume you do something else in Fedora/Red hat?
>
> Yes, here is a patch that is used in the Fedora RPMs. For my use it's good
> enough as it covers the architectures on single platform I maintain. Not
> sure if it's good enough for upstream.

Right, it assumes that there's a <bits/wordsize.h> header that defines
__WORDSIZE neither of which we can assume "globally".

How about instead relying on <limits.h> which is POSIX ? See my attachment for
a fix I belive can work.

-- 
  / daniel.haxx.se

Received on 2013-08-27