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 <drafnel@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Brandon Casey committed
Jun 19, 2009 at 10:10 UTC
1d7b1af42028c321aeca18ab1c719b21089108bf
1 file changed
+1
-1
Makefile
+1
-1
@@ -753,7 +753,7 @@ ifeq ($(uname_S),SunOS)
753
endif
754
INSTALL = /usr/ucb/install
755
TAR = gtar
756
- BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
756
+ BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__ -DHAVE_ALLOCA_H
757
endif
758
ifeq ($(uname_O),Cygwin)
759
NO_D_TYPE_IN_DIRENT = YesPlease