From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLDsP-0001Eh-ID for qemu-devel@nongnu.org; Mon, 18 Jan 2016 12:46:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLDsK-0006PC-KJ for qemu-devel@nongnu.org; Mon, 18 Jan 2016 12:46:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLDsK-0006P0-8E for qemu-devel@nongnu.org; Mon, 18 Jan 2016 12:45:56 -0500 References: <5525054B-A7E2-4538-9F68-9E606B85B1B7@gmail.com> <569C224B.2040102@redhat.com> <1866CB23-7966-4F68-8925-2C3888753883@gmail.com> From: Eric Blake Message-ID: <569D24D2.3000800@redhat.com> Date: Mon, 18 Jan 2016 10:45:54 -0700 MIME-Version: 1.0 In-Reply-To: <1866CB23-7966-4F68-8925-2C3888753883@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Xnr1j0jhbSIFFngCrQFcfPvtFpmPDfElu" Subject: Re: [Qemu-devel] CMSG_SPACE() causing compile time error on Mac OS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Programmingkid , Paolo Bonzini Cc: Peter Maydell , qemu-devel qemu-devel This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Xnr1j0jhbSIFFngCrQFcfPvtFpmPDfElu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/17/2016 04:45 PM, Programmingkid wrote: >> What's the definition of the CMSG_SPACE macro under OS X? >> >> Paolo >=20 > #define CMSG_SPACE(l) (__DARWIN_ALIGN32(sizeof(struct cmsghdr)) + __DA= RWIN_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. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --Xnr1j0jhbSIFFngCrQFcfPvtFpmPDfElu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWnSTSAAoJEKeha0olJ0NqAw0H/0cTWNKn+hKeJoawmxWYe3i1 zi97C5a7VQQRjUpWrgAD+C9ZtDssKsObRi//Ux5f8dZVRYQ176Q9oC703xF8qRRv pQA8BNUR6oPbLJ4zua53apdEpV5zB0Viv/ZfJCAPfsWW4nL3WoBLTAsQjkTpC4QG 9wfiitwgIb3p0enaD72J3UHf8hXyCoc1/EQ05FCdyZvHZDEvgXJqD42mAXaWuu6V q50aPe4Q1Y95YUpIiEvB9H20M7aRqBpO3BwRuYSC3vEpe+Scho0AOYtL6uQAEV63 5ucuaahOqm2zlBH+r0yFMsCmrXct5blo+Km2pNXzjyoeuaGBwWwE0wQqaM3SAFk= =E00E -----END PGP SIGNATURE----- --Xnr1j0jhbSIFFngCrQFcfPvtFpmPDfElu--