summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2009-06-19 10:10:39 -0500
committerJunio C Hamano <gitster@pobox.com>2009-06-20 21:50:11 -0700
commit1d7b1af42028c321aeca18ab1c719b21089108bf (patch)
treee2487c844b3603fc3a7951107dad3f782796a1a0 /Makefile
parentee78cac22b3e5e3f93898361b87a38b488c5592e (diff)
downloadgit-1d7b1af42028c321aeca18ab1c719b21089108bf.tar.gz
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3bd0c08f4b..bbc26e8bd0 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