From 6febecc569f42817b7b86a167a38e682317a6c2c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 25 Mar 1999 03:49:34 +0000 Subject: Clean up att_align calculations so that XXXALIGN macros need not be bogus. --- src/include/postgres.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/include/postgres.h') diff --git a/src/include/postgres.h b/src/include/postgres.h index ed625cd07d0..ab57059295f 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -6,7 +6,7 @@ * * Copyright (c) 1995, Regents of the University of California * - * $Id: postgres.h,v 1.20 1999/02/13 23:20:46 momjian Exp $ + * $Id: postgres.h,v 1.21 1999/03/25 03:49:28 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -92,9 +92,14 @@ typedef struct varlena text; typedef int2 int28[8]; typedef Oid oid8[8]; -typedef struct nameData +/* We want NameData to have length NAMEDATALEN and int alignment, + * because that's how the data type 'name' is defined in pg_type. + * Use a union to make sure the compiler agrees. + */ +typedef union nameData { char data[NAMEDATALEN]; + int alignmentDummy; } NameData; typedef NameData *Name; -- cgit v1.2.3