Re: include compile problems

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, Kris Jurka <books(at)ejurka(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: include compile problems
Date: 2006-07-14 04:58:07
Message-ID: 200607140458.k6E4w7d06404@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Kris Jurka <books(at)ejurka(dot)com> writes:
> > The attached patch makes the tree build for me again after the recent
> > include changes. This patch still violates the postgres.h before all
> > system headers rule and I'm still not sure what changed that broke
> > everything, but if people need to get work done this may help.
>
> I think that Bruce thought that <math.h> defines INT_MAX and related
> symbols, whereas the spec is perfectly clear that they're in
> <limits.h>. However, that's where they are on my machines, and yet CVS
> tip is not failing for me. I'm not clear why not... What platform
> are you using?

What happened is that an include file had #include <math.h>, but didn't
need it, so when it was removed, it had to be added to a few C files.
Not sure why limit.h is involved though, but the include trimming does
sometimes have that affect because limit was used somewhere else.

This is why the cleaning isn't done for every release.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kris Jurka 2006-07-14 05:08:20 Re: include compile problems
Previous Message Tom Lane 2006-07-14 04:55:28 Re: include compile problems

Browse pgsql-patches by date

  From Date Subject
Next Message Kris Jurka 2006-07-14 05:08:20 Re: include compile problems
Previous Message Tom Lane 2006-07-14 04:55:28 Re: include compile problems