Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d30e2ac

Browse files
committed
Portability patches for HPUX 11 and Unixware in configure
and related files. Also remove float.c's gratuitous redeclaration of isinf() ... looks like there are more decls in there that ought to be in config.h, but I'll leave well enough alone for now ...
1 parent 6eccfbc commit d30e2ac

File tree

5 files changed

+160
-166
lines changed

5 files changed

+160
-166
lines changed

src/backend/utils/adt/float.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.40 1999/02/13 23:19:14 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.41 1999/04/20 00:26:32 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -74,10 +74,6 @@
7474
#define SHRT_MIN (-32768)
7575
#endif
7676

77-
#ifndef NAN
78-
#define NAN (0.0/0.0)
79-
#endif
80-
8177
#define FORMAT 'g' /* use "g" output format as standard
8278
* format */
8379
/* not sure what the following should be, but better to make it over-sufficient */
@@ -112,9 +108,8 @@ extern double rint(double x);
112108

113109
#endif
114110

115-
extern int isinf(double x);
116-
117111
#endif
112+
118113
/* ========== USER I/O ROUTINES ========== */
119114

120115

src/config.guess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ EOF
709709
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
710710
&& UNAME_MACHINE=i586
711711
fi
712-
echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION}
712+
echo ${UNAME_MACHINE}-pc-unixware${UNAME_VERSION}
713713
exit 0 ;;
714714
pc:*:*:*)
715715
# uname -m prints for DJGPP always 'pc', but it prints nothing about

src/config.sub

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ case $basic_machine in
175175
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
176176
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
177177
| power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
178-
| xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \
178+
| xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0*-* \
179179
| alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
180180
| ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
181181
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
@@ -692,6 +692,8 @@ case $os in
692692
-svr4*)
693693
os=-sysv4
694694
;;
695+
-unixware7*)
696+
;;
695697
-unixware*)
696698
os=-sysv4.2uw
697699
;;

0 commit comments

Comments
 (0)