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