@matheusbsbs / matheus-bagliano / commits / 4e0da76318
Fork 0

Use compat mkdtemp() on Solaris boxes

Define NO_MKDTEMP for all variants of SunOS; Solaris 10 does not have mkdtemp() and all the other versions our Makefile knows about don't have it either. NO_{SETENV,UNSETENV,C99_FORMAT,STRTOUMAX} definitions cannot be unified across versions. Beginning with Solaris 10, the C-library provides unsetenv(), setenv() and strtoumax(). Also 'z'/'t' formats are supported. However, older versions of Solaris do not support these. Signed-off-by: Guido Ostkamp <git@ostkamp.fastmail.fm> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Guido Ostkamp committed Nov 16, 2007 at 19:59 UTC 4e0da76318c44436286eeeca2b711d82c1098493
1 file changed +1 -2
Makefile
+1 -2
@@ -416,18 +416,17 @@ ifeq ($(uname_S),SunOS)
416 NO_STRCASESTR = YesPlease
417 NO_MEMMEM = YesPlease
418 NO_HSTRERROR = YesPlease
419 + NO_MKDTEMP = YesPlease
420 ifeq ($(uname_R),5.8)
421 NEEDS_LIBICONV = YesPlease
422 NO_UNSETENV = YesPlease
423 NO_SETENV = YesPlease
423 - NO_MKDTEMP = YesPlease
424 NO_C99_FORMAT = YesPlease
425 NO_STRTOUMAX = YesPlease
426 endif
427 ifeq ($(uname_R),5.9)
428 NO_UNSETENV = YesPlease
429 NO_SETENV = YesPlease
430 - NO_MKDTEMP = YesPlease
430 NO_C99_FORMAT = YesPlease
431 NO_STRTOUMAX = YesPlease
432 endif