John Lightsey
2008-Jul-07 22:42 UTC
[Dovecot] PATCH: flexible array members in dovecot 1.1
It looks like the build problems with the flexible array members in Dovecot 1.1 and GCC 2.95 has been raised several times already on this list, but no one mentioned out that autoconf 2.61+ provides a macro to deal with these. -------------- next part -------------- A non-text attachment was scrubbed... Name: dovecot-1.1.1-flexible-array-member.patch Type: application/octet-stream Size: 1178 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20080707/53d4940e/attachment-0002.obj> -------------- next part --------------
Timo Sirainen
2008-Jul-12 13:27 UTC
[Dovecot] PATCH: flexible array members in dovecot 1.1
On Mon, 2008-07-07 at 17:42 -0500, John Lightsey wrote:> It looks like the build problems with the flexible array members in > Dovecot 1.1 and GCC 2.95 has been raised several times already on this > list, but no one mentioned out that autoconf 2.61+ provides a macro to > deal with these.I had also thought about doing something like this, but hadn't bothered yet. AC_C_FLEXIBLE_ARRAY_MEMBER would have been a nice solution, but autoconf 2.61 is too new. For example RHEL/Centos 5.2 still has only 2.59 (and dovecot.org is running it). So I implemented my own version of the check: http://hg.dovecot.org/dovecot-1.1/rev/97245d54efee -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080712/387f3276/attachment-0002.bin>