Re: orafce does NOT build with Sun Studio compiler
От | Tom Lane |
---|---|
Тема | Re: orafce does NOT build with Sun Studio compiler |
Дата | |
Msg-id | 10513.1212646427@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | orafce does NOT build with Sun Studio compiler (Mayuresh Nirhali <Mayuresh.Nirhali@Sun.COM>) |
Ответы |
Re: orafce does NOT build with Sun Studio compiler
|
Список | pgsql-hackers |
Mayuresh Nirhali <Mayuresh.Nirhali@Sun.COM> 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
В списке pgsql-hackers по дате отправления: