5252#
5353# Define NO_MKDTEMP if you don't have mkdtemp in the C library.
5454#
55+ # Define NO_MKSTEMPS if you don't have mkstemps in the C library.
56+ #
5557# Define NO_SYS_SELECT_H if you don't have sys/select.h.
5658#
5759# Define NO_SYMLINK_HEAD if you never want .git/HEAD to be a symbolic link.
@@ -636,10 +638,12 @@ EXTLIBS =
636638
637639ifeq ($(uname_S ) ,Linux)
638640 NO_STRLCPY = YesPlease
641+ NO_MKSTEMPS = YesPlease
639642 THREADED_DELTA_SEARCH = YesPlease
640643endif
641644ifeq ($(uname_S ) ,GNU/kFreeBSD)
642645 NO_STRLCPY = YesPlease
646+ NO_MKSTEMPS = YesPlease
643647 THREADED_DELTA_SEARCH = YesPlease
644648endif
645649ifeq ($(uname_S ) ,UnixWare)
@@ -651,6 +655,7 @@ ifeq ($(uname_S),UnixWare)
651655 SHELL_PATH = /usr/local/bin/bash
652656 NO_IPV6 = YesPlease
653657 NO_HSTRERROR = YesPlease
658+ NO_MKSTEMPS = YesPlease
654659 BASIC_CFLAGS += -Kthread
655660 BASIC_CFLAGS += -I/usr/local/include
656661 BASIC_LDFLAGS += -L/usr/local/lib
@@ -674,6 +679,7 @@ ifeq ($(uname_S),SCO_SV)
674679 SHELL_PATH = /usr/bin/bash
675680 NO_IPV6 = YesPlease
676681 NO_HSTRERROR = YesPlease
682+ NO_MKSTEMPS = YesPlease
677683 BASIC_CFLAGS += -I/usr/local/include
678684 BASIC_LDFLAGS += -L/usr/local/lib
679685 NO_STRCASESTR = YesPlease
@@ -702,6 +708,7 @@ ifeq ($(uname_S),SunOS)
702708 NO_MEMMEM = YesPlease
703709 NO_HSTRERROR = YesPlease
704710 NO_MKDTEMP = YesPlease
711+ NO_MKSTEMPS = YesPlease
705712 OLD_ICONV = UnfortunatelyYes
706713 ifeq ($(uname_R),5.8)
707714 NO_UNSETENV = YesPlease
@@ -724,6 +731,7 @@ ifeq ($(uname_O),Cygwin)
724731 NO_D_INO_IN_DIRENT = YesPlease
725732 NO_STRCASESTR = YesPlease
726733 NO_MEMMEM = YesPlease
734+ NO_MKSTEMPS = YesPlease
727735 NO_SYMLINK_HEAD = YesPlease
728736 NEEDS_LIBICONV = YesPlease
729737 NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
@@ -767,11 +775,13 @@ ifeq ($(uname_S),NetBSD)
767775 BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
768776 THREADED_DELTA_SEARCH = YesPlease
769777 USE_ST_TIMESPEC = YesPlease
778+ NO_MKSTEMPS = YesPlease
770779endif
771780ifeq ($(uname_S ) ,AIX)
772781 NO_STRCASESTR=YesPlease
773782 NO_MEMMEM = YesPlease
774783 NO_MKDTEMP = YesPlease
784+ NO_MKSTEMPS = YesPlease
775785 NO_STRLCPY = YesPlease
776786 NO_NSEC = YesPlease
777787 FREAD_READS_DIRECTORIES = UnfortunatelyYes
@@ -787,12 +797,14 @@ endif
787797ifeq ($(uname_S ) ,GNU)
788798 # GNU/Hurd
789799 NO_STRLCPY=YesPlease
800+ NO_MKSTEMPS = YesPlease
790801endif
791802ifeq ($(uname_S ) ,IRIX64)
792803 NO_IPV6=YesPlease
793804 NO_SETENV=YesPlease
794805 NO_STRCASESTR=YesPlease
795806 NO_MEMMEM = YesPlease
807+ NO_MKSTEMPS = YesPlease
796808 NO_STRLCPY = YesPlease
797809 NO_SOCKADDR_STORAGE=YesPlease
798810 SHELL_PATH=/usr/gnu/bin/bash
@@ -805,6 +817,7 @@ ifeq ($(uname_S),HP-UX)
805817 NO_SETENV=YesPlease
806818 NO_STRCASESTR=YesPlease
807819 NO_MEMMEM = YesPlease
820+ NO_MKSTEMPS = YesPlease
808821 NO_STRLCPY = YesPlease
809822 NO_MKDTEMP = YesPlease
810823 NO_UNSETENV = YesPlease
@@ -834,6 +847,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
834847 NO_C99_FORMAT = YesPlease
835848 NO_STRTOUMAX = YesPlease
836849 NO_MKDTEMP = YesPlease
850+ NO_MKSTEMPS = YesPlease
837851 SNPRINTF_RETURNS_BOGUS = YesPlease
838852 NO_SVN_TESTS = YesPlease
839853 NO_PERL_MAKEMAKER = YesPlease
@@ -853,6 +867,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
853867endif
854868ifneq (,$(findstring arm,$(uname_M ) ) )
855869 ARM_SHA1 = YesPlease
870+ NO_MKSTEMPS = YesPlease
856871endif
857872
858873-include config.mak.autogen
@@ -1011,6 +1026,10 @@ ifdef NO_MKDTEMP
10111026 COMPAT_CFLAGS += -DNO_MKDTEMP
10121027 COMPAT_OBJS += compat/mkdtemp.o
10131028endif
1029+ ifdef NO_MKSTEMPS
1030+ COMPAT_CFLAGS += -DNO_MKSTEMPS
1031+ COMPAT_OBJS += compat/mkstemps.o
1032+ endif
10141033ifdef NO_UNSETENV
10151034 COMPAT_CFLAGS += -DNO_UNSETENV
10161035 COMPAT_OBJS += compat/unsetenv.o
0 commit comments