Re: [HACKERS] Date/time on glibc2 linux

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Date/time on glibc2 linux
Date: 1998-12-14 00:32:45
Message-ID: 36745CAD.8E4F2EC1@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Well, we have a bug report against 6.4, so my inclination is to change
> it in both trees. We know that the current code is broken on at least
> one major platform. I think that outweighs the unproven possibility
> that the other way might be broken somewhere...

OK, I applied the fix (confined to backend/utils/adt/nabstime.c) to both
CVS trees. This swaps the checking of HAVE_INT_TIMEZONE and HAVE_TM_ZONE
so that the TM_ZONE takes precedence.

This single-file patch should be a candidate for removal if others run
into trouble when testing.

One thing I wasn't certain about was the use of #error in non-gcc
compilers. Is that a standard feature?

- Tom

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1998-12-14 00:40:55 Re: [HACKERS] Bad libraries again in latest snapshot , libpgtcl and pltcl
Previous Message Thomas G. Lockhart 1998-12-14 00:29:15 Re: [HACKERS] Case statement ready!