Mayuresh Nirhali <[EMAIL PROTECTED]> writes: > Sun Studio does not like array declarations with null as dimenstion. > So, In pipe.c we have,
> typedef struct > { > LWLockId shmem_lock; > pipe *pipes; > alert_event *events; > alert_lock *locks; > size_t size; > unsigned int sid; > char data[]; /* line 149 */ > } sh_memory; Most C compilers don't like that either. The standard locution is something like char data[1]; /* VARIABLE LENGTH ARRAY */ where you just comment to the human reader that the array is not always of length 1. This has some implications for sizeof() computations. There are lots and lots of examples in the existing Postgres code. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers