Re: NetBSD/dtime_t - Mailing list pgsql-hackers

From Tom Lane
Subject Re: NetBSD/dtime_t
Date
Msg-id 17260.1203171324@sss.pgh.pa.us
Whole thread Raw
In response to Re: NetBSD/dtime_t  (Michael Meskes <meskes@postgresql.org>)
Responses Re: NetBSD/dtime_t  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
Michael Meskes <meskes@postgresql.org> writes:
> Anyway, does anyone have a suggestion how to solve this issue? Informix
> uses the dtime_t datatype to store a timestamp. pgtypeslib also defines
> a timestamp type which is 64 bit and not 32 bit like the NetBSD one.
> Informix compatibility now typedefs dtime_t to timestamp so the
> functions with Informix syntax work as advertized.

Does it have to be a typedef, rather than a #define?
I'm thinking that you could forcibly include sys/types.h
and then it would be safe to #define dtime_t the way you want.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: NetBSD/dtime_t
Next
From: Tom Lane
Date:
Subject: Replacing time_t fields in pg_control and elsewhere