diff options
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r-- | src/include/postgres.h | 9 |
1 files changed, 7 insertions, 2 deletions
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; |