> In src/pl/tcl/pltcl.c:
> Permute the order of:
> #include "postgres.h"
> #include <tcl.h>
> so as it appears as:
> #include <tcl.h>
> #include "postgres.h"
I' afraid this is not a fix but just paints over the symptoms. As you
noticed, this topic has already been discussed, and the solution needs to be
a little more involved than this.