[SSSD] [PATCH] Provide TTL structure names for c-ares < 1.7

Jakub Hrozek jhrozek at redhat.com
Thu Jun 16 21:32:45 UTC 2011


On 06/16/2011 06:29 PM, Stephen Gallagher wrote:
> On Thu, 2011-06-16 at 17:45 +0200, Jakub Hrozek wrote:
>> In c-ares 1.7, the upstream renamed the addrttl/addr6ttl structures to
>> ares_addrttl/ares_addr6ttl so they are in the ares_ namespace.
>>
>> Because they are committed to stable ABI, the contents are the same,
>> just the name changed -- so it is safe to just #define the new name for
>> older c-ares version.
>
> Is it possible to make this:
> #ifndef ares_addrttl
> #define ares_addrttl addrttl
> #endif
>
> I'd prefer not to forcibly #define those in case sometime in the future
> they opt to drop the old ABI.
>

Right, that is safer. New patch that explicitly checks for presence of 
the structures is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Provide-TTL-structure-names-for-c-ares-1.7.patch
Type: text/x-patch
Size: 1836 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110616/1fe61e66/attachment.bin>


More information about the sssd-devel mailing list