From: | Sean Chittenden <sean(at)chittenden(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Samuel A Horwitz <horwitz(at)argoscomp(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: CVS compile on AIX 4.3.2 |
Date: | 2003-07-15 17:55:11 |
Message-ID: | 20030715175511.GB95914@perrin.int.nxad.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-07-15 17:56:55 | Re: OSF build fixed |
Previous Message | Tom Lane | 2003-07-15 16:49:11 | Re: CVS compile on AIX 4.3.2 |