[PATCH] AIX Fix xlc designated initializer bug

Guillaume G Taillon gtaillon at ca.ibm.com
Mon Feb 29 21:13:27 UTC 2016

This is a bug in xlc, a PMR has been opened to get it fixed.
The workaround is to add curly brackets around the problematic fields.

Is this too simple a fix? I considered using #ifs but 5 lines for a 
problem seemed too gross for me. Eg (not tested):

#if defined(__IMBC__) && __IBMC__ <= IBMC_COMPAT_INITIALIZERS 
    .context = {.pid = pid},
    .context.pid = pid,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s4-torture-Compatibility-fix-for-xlc.patch
Type: application/octet-stream
Size: 4739 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160229/c350a466/0001-s4-torture-Compatibility-fix-for-xlc.obj>

More information about the samba-technical mailing list