summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Aguilar <davvid@gmail.com>2009-05-31 08:35:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-06-01 00:56:44 (GMT)
commit0620b39b3b7b1f27bf863d9591fd8146a9a8931d (patch)
tree17d7859c1c9719c84db24d18c71a61d5aa485784 /configure.ac
parent33fd7169ed6658e898b414a66aefaad16b404ec5 (diff)
downloadgit-0620b39b3b7b1f27bf863d9591fd8146a9a8931d.zip
git-0620b39b3b7b1f27bf863d9591fd8146a9a8931d.tar.gz
git-0620b39b3b7b1f27bf863d9591fd8146a9a8931d.tar.bz2
compat: add a mkstemps() compatibility function
mkstemps() is a BSD extension so provide an implementation for cross-platform use. Signed-off-by: David Aguilar <davvid@gmail.com> Tested-by: Johannes Sixt <j6t@kdbg.org> (Windows) Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4e728bc..953da07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -677,6 +677,13 @@ GIT_CHECK_FUNC(mkdtemp,
[NO_MKDTEMP=YesPlease])
AC_SUBST(NO_MKDTEMP)
#
+# Define NO_MKSTEMPS if you don't have mkstemps in the C library.
+GIT_CHECK_FUNC(mkstemps,
+[NO_MKSTEMPS=],
+[NO_MKSTEMPS=YesPlease])
+AC_SUBST(NO_MKSTEMPS)
+#
+#
# Define NO_MMAP if you want to avoid mmap.
#
# Define NO_ICONV if your libc does not properly support iconv.