Re: CVS compile on AIX 4.3.2 - Mailing list pgsql-hackers

From Sean Chittenden
Subject Re: CVS compile on AIX 4.3.2
Date
Msg-id 20030715175511.GB95914@perrin.int.nxad.com
Whole thread Raw
In response to Re: CVS compile on AIX 4.3.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: CVS compile on AIX 4.3.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: CVS compile on AIX 4.3.2  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List 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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: CVS compile on AIX 4.3.2
Next
From: Tom Lane
Date:
Subject: Re: OSF build fixed