Re: PostgreSQL 7.4beta3 does not compile on AIX 5 ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hans-Jürgen Schönig <postgres(at)cybertec(dot)at>
Cc: pgsql-hackers(at)postgresql(dot)org, eg(at)cybertec(dot)at
Subject: Re: PostgreSQL 7.4beta3 does not compile on AIX 5 ...
Date: 2003-09-21 17:45:30
Message-ID: 12027.1064166330@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

=?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= <postgres(at)cybertec(dot)at> writes:
> I have tried to perform a regression test on AIX 5.1 (PostgreSQL 7.4beta3).
> I have encountered an error.

Ill-considered combination of #ifdefs apparently. I have applied the
attached patch.

regards, tom lane

*** src/interfaces/ecpg/pgtypeslib/extern.h~ Sun Aug 3 23:01:49 2003
--- src/interfaces/ecpg/pgtypeslib/extern.h Sun Sep 21 13:41:53 2003
***************
*** 29,37 ****
char char_val;
unsigned long int luint_val;
double double_val;
- #ifdef HAVE_INT64_TIMESTAMP
int64 int64_val;
- #endif
};

int pgtypes_fmt_replace(union un_fmt_comb, int, char **, int *);
--- 29,35 ----
*** src/interfaces/ecpg/pgtypeslib/common.c~ Sun Aug 3 23:01:49 2003
--- src/interfaces/ecpg/pgtypeslib/common.c Sun Sep 21 13:41:43 2003
***************
*** 88,99 ****
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
"%0.0g", replace_val.double_val);
break;
- #ifdef HAVE_INT64
case PGTYPES_TYPE_INT64:
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
INT64_FORMAT, replace_val.int64_val);
break;
- #endif
case PGTYPES_TYPE_UINT:
i = snprintf(t, PGTYPES_FMT_NUM_MAX_DIGITS,
"%u", replace_val.uint_val);
--- 88,97 ----

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-09-21 18:04:12 Re: Align large shared memory allocations
Previous Message Hans-Jürgen Schönig 2003-09-21 16:37:33 PostgreSQL 7.4beta3 does not compile on AIX 5 ...