Code

Makefile: Solaris needs HAVE_ALLOCA_H for alloca()
authorBrandon Casey <drafnel@gmail.com>
Fri, 19 Jun 2009 15:10:39 +0000 (10:10 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Jun 2009 04:50:11 +0000 (21:50 -0700)
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>
Makefile

index 3bd0c08f4b35d61deb26b0ee977602beabd8fe26..bbc26e8bd0a847441fb49f009d8f797a65fc869e 100644 (file)
--- 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