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

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hans-Jürgen Schönig <postgres@cybertec.at>
Cc: pgsql-hackers@postgresql.org, eg@cybertec.at
Date: 2003-09-21T17:45:30Z
Lists: pgsql-hackers
=?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= <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 ----