From: Brandon Casey Date: Fri, 19 Jun 2009 15:10:39 +0000 (-0500) Subject: Makefile: Solaris needs HAVE_ALLOCA_H for alloca() X-Git-Tag: v1.6.4-rc0~16^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1d7b1af42028c321aeca18ab1c719b21089108bf;p=git.git Makefile: Solaris needs HAVE_ALLOCA_H for alloca() There is special handling in compat/regex/regex.c for the GNU compiler to define alloca to __builtin_alloca, but the native compiler must include alloca.h which happens when HAVE_ALLOCA_H is defined. Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index 3bd0c08f4..bbc26e8bd 100644 --- a/Makefile +++ b/Makefile @@ -753,7 +753,7 @@ ifeq ($(uname_S),SunOS) endif INSTALL = /usr/ucb/install TAR = gtar - BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__ + BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__ -DHAVE_ALLOCA_H endif ifeq ($(uname_O),Cygwin) NO_D_TYPE_IN_DIRENT = YesPlease