From: Björn Steinbrink Date: Thu, 15 Nov 2007 00:50:11 GMT Subject: Re: [PATCH] Fix Solaris Workshop Compiler issues 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: > Björn Steinbrink 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