Re: [exim-dev] Latest releases on FreeBSD4

Pàgina inicial
Delete this message
Reply to this message
Autor: Phil Pennock
Data:  
A: Paul Civati
CC: exim-dev
Assumpte: Re: [exim-dev] Latest releases on FreeBSD4
On 2010-12-14 at 11:38 +0000, Paul Civati wrote:
> Problem solved, I think.
>
> At least, it builds but I've not tested it yet.
>
> src/macros.h contains a work around for lack of va_copy() but the
> macro is missing (or this old gcc does not like, depends on your
> point of view) the lack of semi colons in the macro definition.
>
> 4.72 has:
>
> #define va_copy(dest, src) do { memcpy(dest, src, sizeof(va_list) } while (0)
>
> which I had to change to this:
>
> #define va_copy(dest, src) do { memcpy(dest, src, sizeof(va_list)); } while (0);


This was my mistake:
http://git.exim.org/exim.git/commitdiff/ce5524496cf016f06c8004e00ce9d043f4ac6aff

The only actual change needed is the second close parens, the first
added semi-colon is unnecessary and the second is wrong.

I'll fix this.