Skip to content

Commit 614dd90

Browse files
Gary V. Vaughangitster
authored andcommitted
Makefile: SunOS 5.6 portability fix
Although configure takes care of most of this, set some default values for Solaris 2.6 (aka SunOS-5.6) to ensure git compiles even when configure is not used to build it. Signed-off-by: Gary V. Vaughan <gary@thewrittenword.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 520fbc2 commit 614dd90

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,18 @@ ifeq ($(uname_S),SunOS)
812812
NO_MKDTEMP = YesPlease
813813
NO_MKSTEMPS = YesPlease
814814
NO_REGEX = YesPlease
815+
ifeq ($(uname_R),5.6)
816+
SOCKLEN_T = int
817+
NO_HSTRERROR = YesPlease
818+
NO_IPV6 = YesPlease
819+
NO_SOCKADDR_STORAGE = YesPlease
820+
NO_UNSETENV = YesPlease
821+
NO_SETENV = YesPlease
822+
NO_STRLCPY = YesPlease
823+
NO_C99_FORMAT = YesPlease
824+
NO_STRTOUMAX = YesPlease
825+
GIT_TEST_CMP = cmp
826+
endif
815827
ifeq ($(uname_R),5.7)
816828
NEEDS_RESOLV = YesPlease
817829
NO_IPV6 = YesPlease

0 commit comments

Comments
 (0)