This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Compiling with -fpack-struct yields wrong results


Hello,

When compiling my program with -fpack-struct, fstat returns the wrong
result !!!

I suggest redefining "struct stat" with the packed attribute in the
corresponding include file. Or at least to add something about it in the
FAQ.

I think the problem is common to all non-aligned structures.








--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]