Re: CVS compile on AIX 4.3.2
Sean Chittenden <sean@chittenden.org>
From: Sean Chittenden <sean@chittenden.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Samuel A Horwitz <horwitz@argoscomp.com>, pgsql-hackers@postgresql.org
Date: 2003-07-15T17:55:11Z
Lists: pgsql-hackers
> > I am getting the following error > > ../../../../src/include/libpq/pqcomm.h:60: `int64_t' undeclared here (not > > in a function) > > There's a patch floating around the list to remove use of int64_t, which > is evidently not too portable. I'll try to get it applied soon. int64_t is a C99 data type that hasn't existed prior to recent versions of gcc, but is quite valid/correct. I'd think that int64_t support should be fudged on platforms where in64_t isn't defined as long long. IIRC, this is what FreeBSD has done for ages to get around the lack of a 64bit type. /* From machine/_types.h */ #if defined(lint) /* LONGLONG */ typedef long long __int64_t; /* LONGLONG */ typedef unsigned long long __uint64_t; #elif defined(__GNUC__) typedef int __attribute__((__mode__(__DI__))) __int64_t; typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; #else /* LONGLONG */ typedef long long __int64_t; /* LONGLONG */ typedef unsigned long long __uint64_t; #endif -sc -- Sean Chittenden