[Dovecot] PATCH: compile dovecot-1.1.beta14 with gcc 2.95
Timo Sirainen
tss at iki.fi
Thu Jan 31 17:36:36 EET 2008
On Wed, 2008-01-23 at 16:57 +0100, Sven Anderson wrote:
> I patched dovecot-1.1.beta14 to compile under gcc 2.95. __builtin_expect
> and __attribute__((malloc)) are only available since gcc 3.0, and
> __builtin_types_compatible_p since 3.1.
Thanks, committed.
> Also the flexible array members (char a[]) are not available for gcc
> 2.95. So I replaced them with zero-extent arrays (char a[0]), which
> should also work, but that is gcc specific. A general pointer (char* a)
> should work as well, I guess.
char a[] is C99 standard, so I'll keep using that. There aren't many gcc
2.95 users anymore.
> BTW.: There is a typo in src/login-common/main.c, it's equivalent, not
> equilevant.
Fixed. I noticed only a year or two ago that I had been misspelling it
for ages.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080131/f0143563/attachment.bin
More information about the dovecot
mailing list