Commit 3e871388 authored by Marc G. Fournier's avatar Marc G. Fournier

From: Darren King <aixssd!darrenk@abs.net>

Subject: [PATCHES] Re: [PORTS] AIX 6.1 fixes...

Here are the patches for the two things that wouldn't make it thru the AIX
compiler.  The geo_ops.c change is harmless I believe.  The nbtcompare.c patch
fixes me, but I don't know about any other ports.  Maybe wait on that one
until Vadim decides what to do about the unsigned vs signed chars varlena
issue.
parent fce2c41b
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.8 1997/04/18 02:48:05 vadim Exp $ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtcompare.c,v 1.9 1997/05/22 00:07:15 scrappy Exp $
* *
* NOTES * NOTES
* These functions are stored in pg_amproc. For each operator class * These functions are stored in pg_amproc. For each operator class
...@@ -134,10 +134,10 @@ btnamecmp(NameData *a, NameData *b) ...@@ -134,10 +134,10 @@ btnamecmp(NameData *a, NameData *b)
int32 int32
bttextcmp(struct varlena *a, struct varlena *b) bttextcmp(struct varlena *a, struct varlena *b)
{ {
unsigned char *ap, *bp;
int res; int res;
#ifdef USE_LOCALE #ifdef USE_LOCALE
unsigned char *ap, *bp;
int la = VARSIZE(a) - VARHDRSZ; int la = VARSIZE(a) - VARHDRSZ;
int lb = VARSIZE(b) - VARHDRSZ; int lb = VARSIZE(b) - VARHDRSZ;
...@@ -155,6 +155,7 @@ bttextcmp(struct varlena *a, struct varlena *b) ...@@ -155,6 +155,7 @@ bttextcmp(struct varlena *a, struct varlena *b)
pfree (bp); pfree (bp);
#else #else
char *ap, *bp;
int len = VARSIZE(a); int len = VARSIZE(a);
/* len is the length of the shorter of the two strings */ /* len is the length of the shorter of the two strings */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.7 1997/05/19 03:49:39 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.8 1997/05/22 00:07:21 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -986,7 +986,8 @@ path_close(PATH *path) ...@@ -986,7 +986,8 @@ path_close(PATH *path)
{ {
PATH *result; PATH *result;
if (PointerIsValid((char *)(result = path_copy(path)))) result = path_copy(path);
if (PointerIsValid((char *)result))
result->closed = TRUE; result->closed = TRUE;
return(result); return(result);
...@@ -997,7 +998,8 @@ path_open(PATH *path) ...@@ -997,7 +998,8 @@ path_open(PATH *path)
{ {
PATH *result; PATH *result;
if (PointerIsValid((char *)(result = path_copy(path)))) result = path_copy(path);
if (PointerIsValid((char *)result))
result->closed = FALSE; result->closed = FALSE;
return(result); return(result);
...@@ -2639,7 +2641,7 @@ poly_path(POLYGON *poly) ...@@ -2639,7 +2641,7 @@ poly_path(POLYGON *poly)
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.7 1997/05/19 03:49:39 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.8 1997/05/22 00:07:21 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment