delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/30/17:27:50

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=jlkK+m
/xA8rmt0trDqbO/nSLE/wwWuIRT/U4jPY0wRSCElvMivZXtw9x+NKIP7Ni6oikU9
ymGikaF3FW6OmaKUYvFZ4l26uYYSd6C/btPEcpg0WKPRiYpK+jUltIVJi1zjGVbf
Oet8Fqh1kmDcvoAeY++8MrBms3O87fcOgC+3g=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=X2fsVYyNAeDX
AtUpdR6b01TTUqg=; b=cz3CVXAzRjT40OH8Nc8qz4TScA04ebii8NBTQTSA6mKw
xLW2W8h5XHkft+k7SpWtTxOuiv8C1H9mkTkLDkCP3WlFMIL0qA+PX+GaqeADfMuM
sGcRH5s8VJm9U3QaRwqLgXs/dtQRlKgHNWKn07tYgvDUG8FeatFyViEBmUpc03M=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1
Message-ID: <51A7C3E5.20900@redhat.com>
Date: Thu, 30 May 2013 15:25:57 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: bug in <sys/un.h>
References: <51A78E70 DOT 1010600 AT redhat DOT com> <20130530200344 DOT GA23141 AT calimero DOT vinschen DOT de>
In-Reply-To: <20130530200344.GA23141@calimero.vinschen.de>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-Virus-Found: No

------enig2MTRNFNGOWDUWHQERKRJC
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 05/30/2013 02:03 PM, Corinna Vinschen wrote:
>> so that the compiler really is complaining about two different
>> incompatible 'struct msghdr' layouts.  I'm not quite sure what the fix
>> should be, [...]
>=20
> Try this:
>=20
> Index: cygwin/if.h
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvs/src/src/winsup/cygwin/include/cygwin/if.h,v
> retrieving revision 1.11
> diff -u -p -r1.11 if.h
> --- cygwin/if.h	21 Jan 2013 04:38:30 -0000	1.11
> +++ cygwin/if.h	30 May 2013 20:02:56 -0000
> @@ -16,7 +16,7 @@ extern "C" {
>  #endif /* __cplusplus */
>=20=20
>  #include <sys/types.h>
> -#include <sys/socket.h>
> +#include <cygwin/socket.h>

Yep, that appears to do the trick for both my STC and the original
program.  Thanks for hunting down an elegant solution.

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


------enig2MTRNFNGOWDUWHQERKRJC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJRp8PlAAoJEKeha0olJ0Nqv7UH/j7jfMZgL37ENfi2FQ1YX0jy
VyiDXsXnRzhVjryrpIGe1n2eMIvx4a9SM17YJy1orHxT6HMzxeW3d/vbc44bXx2x
atedbE81VU2RaWxWBo9Z1+qQyYEqamilaButiRrjZtFMCe62fs7b2XlyJk09Iaff
wO9OaPDw40CovRFRfLAu7Yjz3/ot5TtHqjetTbukuw4/U1bE3clYcTJRI28831rl
ssZiLd1w18+pMTZ2zYsagG7pHz9L1MEMPPoJGMsMS1jpsDq+KykJmudI+s9hBq4p
WMtuaIdysXc0Hcdf2Ipu2+H5wcc377f32TEycayCx9zBN/od518qbOiRZiGPy7w=
=Tcb4
-----END PGP SIGNATURE-----

------enig2MTRNFNGOWDUWHQERKRJC--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019