Re: ecpg doesn't compile (datetime.h/dtime_t) - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: ecpg doesn't compile (datetime.h/dtime_t)
Date
Msg-id 20030929180734.GA18591@feivel.fam-meskes.de
Whole thread Raw
In response to ecpg doesn't compile (datetime.h/dtime_t)  (Patrick Welche <prlw1@newn.cam.ac.uk>)
Responses Re: ecpg doesn't compile (datetime.h/dtime_t)
List pgsql-hackers
On Mon, Sep 29, 2003 at 06:41:48PM +0100, Patrick Welche wrote:
> Today's cvs doesn't compile. I think it is due to
> cvs diff -r1.7 -r1.8 src/interfaces/ecpg/include/datetime.h
> I have dtime_t defined in my sys/types.h. The old version of datetime.h used

Argh, didn't know that some systems have this datatype.

> #define dtime_t timestamp, the new one uses a typedef. Is there actually
> a reason to keep dtime_t, or would just performing the #define, i.e.,
> the following patch be sufficient? It allows me to compile and install
> postgres.. (I don't use ecpg, so I really can't say..)

For ecpg it does not matter which name you use. The typedef is there for
only one reason, namely that Informix uses dtime_t and to be compatible
we have to define that type as well.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


pgsql-hackers by date:

Previous
From: Lamar Owen
Date:
Subject: Re: [ADMIN] postgres 6.2 vacuum
Next
From: Rod Taylor
Date:
Subject: Re: Alter Table Column Datatype