Skip to content

Commit 1d7b1af

Browse files
drafnelgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ee78cac commit 1d7b1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ ifeq ($(uname_S),SunOS)
753753
endif
754754
INSTALL = /usr/ucb/install
755755
TAR = gtar
756-
BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
756+
BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__ -DHAVE_ALLOCA_H
757757
endif
758758
ifeq ($(uname_O),Cygwin)
759759
NO_D_TYPE_IN_DIRENT = YesPlease

0 commit comments

Comments
 (0)