[libvirt] [PATCH] build: fix build with latest rawhide kernel headers

Eric Blake eblake at redhat.com
Mon Sep 16 14:40:20 UTC 2013


On 09/16/2013 08:31 AM, Daniel P. Berrange wrote:
> On Fri, Sep 13, 2013 at 10:33:04AM -0600, Eric Blake wrote:
>> Bother those kernel developers.  In the latest rawhide, kernel
>> and glibc have now been unified so that <netinet/in.h> and
>> <linux/in6.h> no longer clash; but <linux/if_bridge.h> is still
>> not self-contained.  Because of the latest header change, the
>> build is failing with:
>>

>> +    if test "x$lv_cv_kernel_glibc_compatible" != xyes; then
>> +      AC_DEFINE([KERNEL_HEADERS_WORKAROUND], [1],
>> +        [define to 1 if Linux kernel headers require a workaround to avoid
>> +        compilation errors when mixed with glibc headers])
>> +    fi
> 
> nitpick - how about calling this    LINUX_NETINET_IN_WORKAROUND or
> something similarly specific about the header file that is actually
> broken.

Yeah, that does sound nicer, and less likely to cause confusion down the
road.  Consider it squashed in.

> 
> ACK

and pushing shortly.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130916/6fda7730/attachment-0001.sig>


More information about the libvir-list mailing list