Re: python cleanup - Mailing list pgsql-hackers

From Tom Lane
Subject Re: python cleanup
Date
Msg-id 8212.1311604252@sss.pgh.pa.us
Whole thread Raw
In response to Re: python cleanup  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> On 07/24/2011 11:46 PM, Tom Lane wrote:
>>> [python headers set _POSIX_C_SOURCE and _XOPEN_SOURCE]

>> What in the world are the python headers doing fooling with these
>> macros, anyway??

> The reason we get warnings about these and not about many other things it defines (such as the HAVE_foo macros) is
thatthese are set to values different from those encountered in the previously included headers.
 

That's pretty scary in itself, since it suggests that the Python guys
know or think that changing those values will do something magic.

I'm worried that they are trying to do the same kind of thing that
we are trying to do with our put-postgres.h-first rule, namely ensure
that all loadable modules match the core's idea of libc properties.
If that's what's going on here, and their idea of those properties
is different from our standard build, then we may have worse problems
than a compiler warning.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: python cleanup
Next
From: Tom Lane
Date:
Subject: Re: python cleanup