[Dovecot] PATCH: compile dovecot-1.1.beta14 with gcc 2.95

Sven Anderson sven at anderson.de
Wed Jan 23 17:57:59 EET 2008


Hi,

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.

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.

I have attached a patch that fixes all this. It is for beta13 but also
works on beta14.

BTW.: There is a typo in src/login-common/main.c, it's equivalent, not
equilevant.


Cheers,

Sven

-- 
http://sven.anderson.de    "Believe those who are seeking the truth.
tel:    +49-551-9969285     Doubt those who find it."
mobile: +49-179-4939223                                 (André Gide)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-1.1.beta13.gcc_2_95.patch
Type: text/x-patch
Size: 2060 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20080123/3da2c5f3/attachment.bin 


More information about the dovecot mailing list