On Jul 3 10:42, Václav Zeman wrote: > 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.
Yep, done. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- 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