mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	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.
This commit is contained in:
		| @@ -7,7 +7,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * 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 | ||||
|  *	These functions are stored in pg_amproc.  For each operator class | ||||
| @@ -134,10 +134,10 @@ btnamecmp(NameData *a, NameData *b) | ||||
| int32 | ||||
| bttextcmp(struct varlena *a, struct varlena *b) | ||||
| { | ||||
|     unsigned char *ap, *bp; | ||||
|     int res; | ||||
|  | ||||
| #ifdef USE_LOCALE | ||||
|     unsigned char *ap, *bp; | ||||
|     int la = VARSIZE(a) - VARHDRSZ; | ||||
|     int lb = VARSIZE(b) - VARHDRSZ; | ||||
|      | ||||
| @@ -155,6 +155,7 @@ bttextcmp(struct varlena *a, struct varlena *b) | ||||
|     pfree (bp); | ||||
|  | ||||
| #else | ||||
|     char *ap, *bp; | ||||
|     int len = VARSIZE(a); | ||||
|      | ||||
|     /* len is the length of the shorter of the two strings */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user