Re: [PATCH] Fix Solaris Workshop Compiler issues
- From
Björn Steinbrink <b.steinbrink@gmx.de>
- Date
- Nov 15, 2007, 00:50 UTC
- Message-ID
- <20071115005011.GC25021@atjola.homenet>
- In-Reply-To
- <7vy7d08her.fsf@gitster.siamese.dyndns.org>
On 2007.11.14 16:46:20 -0800, Junio C Hamano wrote:
Show 14 quoted lines
> Björn Steinbrink <B.Steinbrink@gmx.de> writes: > > > On 2007.11.14 16:30:08 -0800, Junio C Hamano wrote: > > > >> Maybe your compiler needs -DFLEX_ARRAY=0 in CFLAGS? > > > > Actually, I just created a test-case remotely on a Solaris box in my > > university (see below) and didn't compile the actual git code. With the > > FAM, cc complains about a redeclared identifier, with a zero-sized > > array, it complains that an array cannot be zero-sized... > > I think you can pass -DFLEX_ARRAY=1 as a workaround. It would > waste one array member in a flexible structure but that is > better than compiler choking.
Yeah, that at least compiles (didn't do any further tests), forgot to say that in the last email.
Björn