Re: ecpg doesn't compile (datetime.h/dtime_t)

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: ecpg doesn't compile (datetime.h/dtime_t)
Дата
Msg-id 20030929180734.GA18591@feivel.fam-meskes.de
обсуждение исходный текст
Ответ на ecpg doesn't compile (datetime.h/dtime_t)  (Patrick Welche <prlw1@newn.cam.ac.uk>)
Ответы Re: ecpg doesn't compile (datetime.h/dtime_t)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Lamar Owen
Дата:
Сообщение: Re: [ADMIN] postgres 6.2 vacuum
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: Alter Table Column Datatype