qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] CMSG_SPACE() causing compile time error on Mac OS X


From: Eric Blake
Subject: Re: [Qemu-devel] CMSG_SPACE() causing compile time error on Mac OS X
Date: Mon, 18 Jan 2016 10:45:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 01/17/2016 04:45 PM, Programmingkid wrote:
>> What's the definition of the CMSG_SPACE macro under OS X?
>>
>> Paolo
> 
> #define       CMSG_SPACE(l)           (__DARWIN_ALIGN32(sizeof(struct 
> cmsghdr)) + __DARWIN_ALIGN32(l))

And the definition of __DARWIN_ALIGN32()?

It looks like the definition is not properly resulting in a compile-time
constant, and therefore the warning about the initializer is resulting
because you can't initialize a dynamically-sized array.  But you still
haven't shown us why the headers are resulting in a non-constant size.

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]