This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: bug: struct cmsghdr does not match system on cygwin64
- From: Kenton Varda <kenton at sandstorm dot io>
- To: Marco Atzeri <marco dot atzeri at gmail dot com>
- Cc: cygwin <cygwin at cygwin dot com>
- Date: Mon, 29 Dec 2014 14:14:47 -0800
- Subject: Re: bug: struct cmsghdr does not match system on cygwin64
- Authentication-results: sourceware.org; auth=none
- References: <CAOP=4wh3i=gHtCTPwksmrP=3_aQTMiFw8_0Vg08hrCPg53m8fg at mail dot gmail dot com> <CAOP=4whbdcjsaSVzEbvvLhFhE5v210Y8CoXV+JGboank=mKsOw at mail dot gmail dot com> <54A1C8E0 dot 40509 at gmail dot com>
On Mon, Dec 29, 2014 at 1:34 PM, Marco Atzeri <marco.atzeri@gmail.com> wrote:
> the 4 byte shift is likely due to
>
> SIZE_T -> ULONG_PTR -> unsigned __int3264
Yes, exactly.
So, cygwin/socket.h's struct cmsghdr definition needs to be fixed to match.
-Kenton
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple