Re: PostgreSQL 7.4beta3 does not compile on AIX 5 ... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PostgreSQL 7.4beta3 does not compile on AIX 5 ...
Date
Msg-id 12027.1064166330@sss.pgh.pa.us
Whole thread Raw
In response to PostgreSQL 7.4beta3 does not compile on AIX 5 ...  (Hans-Jürgen Schönig <postgres@cybertec.at>)
List pgsql-hackers
Hans-Jürgen Schönig <postgres@cybertec.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 ----


pgsql-hackers by date:

Previous
From: Hans-Jürgen Schönig
Date:
Subject: PostgreSQL 7.4beta3 does not compile on AIX 5 ...
Next
From: Gaetano Mendola
Date:
Subject: Re: Error message cleanup