This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: setup ChangeLog win32.h
- From: VÃclav Zeman <vhaisman at gmail dot com>
- To: corinna at sourceware dot org
- Cc: cygwin at cygwin dot com
- Date: Wed, 3 Jul 2013 10:42:48 +0200
- Subject: Re: setup ChangeLog win32.h
- References: <20130702161048 dot 12696 dot qmail at sourceware dot org>
On 2 July 2013 18:10, wrote:
>
> CVSROOT: /cvs/cygwin-apps
> Module name: setup
> Changes by: XXXX 2013-07-02 16:10:48
>
> Modified files:
> . : ChangeLog win32.h
>
> Log message:
> * win32.h (struct acl_t): Make sure struct is 4 byte aligned.
>
> Patches:
> http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.807&r2=2.808
> http://sourceware.org/cgi-bin/cvsweb.cgi/setup/win32.h.diff?cvsroot=cygwin-apps&r1=2.29&r2=2.30
>
Why not using the union trick?
struct acl_t {
union {
LONG __align; /* Make sure &acl is 4-byte aligned. */
ACL acl;
};
char aclbuf[TOKEN_ACL_SIZE (7)];
};
Same effect, AFAIK, and no size overhead.
--
VZ
--
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