Skip site navigation (1) Skip section navigation (2)

Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)

From: Douglas Carmichael <dcarmich(at)mail(dot)ourservers(dot)net>
To: pgsql-patches(at)postgresql(dot)org
Subject: Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)
Date: 2001-04-15 21:07:36
Message-ID: 009FA94E.A6A78DAF.2@mail.ourservers.net (view raw or flat)
Thread:
Lists: pgsql-patches
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name		:	Douglas Carmichael
Your email address	:	dcarmich(at)ourservers(dot)net


System Configuration
---------------------
  Architecture (example: Intel Pentium)  	: DEC/Compaq Alpha

  Operating System (example: Linux 2.0.26 ELF) 	: Compaq Tru64 UNIX v5.0A rev 1094

  PostgreSQL version (example: PostgreSQL-7.0):   PostgreSQL-7.0.3

  Compiler used (example:  gcc 2.8.0)		: Compaq C T6.4-212 (dtk)


Please enter a FULL description of your problem:
------------------------------------------------

I have patches to src/backend/utils/adt/float.c and
src/backend/utils/adt/numeric.c to get PostgreSQL 7.0.3 to compile on Tru64
v5.0A with Compaq C T6.4-212 (dtk).

Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible: 
----------------------------------------------------------------------


N/A


If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------


diff -cr postgresql-7.0.3_old/src/backend/utils/adt/float.c postgresql-7.0.3/src/backend/utils/adt/float.c
*** postgresql-7.0.3_old/src/backend/utils/adt/float.c	Wed Apr 12 12:15:49 2000
--- postgresql-7.0.3/src/backend/utils/adt/float.c	Fri Apr 13 22:13:10 2001
***************
*** 68,74 ****
  #include "utils/builtins.h"
  
  #ifndef NAN
! #define NAN		(0.0/0.0)
  #endif
  
  #ifndef SHRT_MAX
--- 68,74 ----
  #include "utils/builtins.h"
  
  #ifndef NAN
! #define NAN		0
  #endif
  
  #ifndef SHRT_MAX
diff -cr postgresql-7.0.3_old/src/backend/utils/adt/numeric.c postgresql-7.0.3/src/backend/utils/adt/numeric.c
*** postgresql-7.0.3_old/src/backend/utils/adt/numeric.c	Wed Apr 12 12:15:50 2000
--- postgresql-7.0.3/src/backend/utils/adt/numeric.c	Fri Apr 13 22:15:55 2001
***************
*** 41,47 ****
  #endif
  
  #ifndef NAN
! #define NAN		(0.0/0.0)
  #endif
  
  
--- 41,47 ----
  #endif
  
  #ifndef NAN
! #define NAN	       0
  #endif

Responses

pgsql-patches by date

Next:From: Stephan SzaboDate: 2001-04-15 22:36:56
Subject: Patch for catching incompatible types in fk constraints
Previous:From: Neil ConwayDate: 2001-04-15 19:52:38
Subject: PATCH: JDBC compile w/ jikes

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group