From: Junio C Hamano Date: Thu, 15 Nov 2007 00:46:20 GMT Subject: Re: [PATCH] Fix Solaris Workshop Compiler issues Message-ID: <7vy7d08her.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20071115004404.GB25021@atjola.homenet> 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.