From: Jakub Narebski <jnareb@gmail.com>
To: David Aguilar <davvid@gmail.com>
Cc: git@vger.kernel.org, gitster@pobox.com,
johannes.schindelin@gmx.de, markus.heidelberg@web.de,
nick@incise.org
Subject: Re: [PATCH 1/2] compat: add a mkstemps() compatibility function
Date: Wed, 27 May 2009 01:20:55 -0700 (PDT) [thread overview]
Message-ID: <m33aarc5yc.fsf@localhost.localdomain> (raw)
In-Reply-To: <1243394364-13772-1-git-send-email-davvid@gmail.com>
David Aguilar <davvid@gmail.com> writes:
> mkstemps() is a BSD extension so provide an implementation
> for cross-platform use.
>
> Signed-off-by: David Aguilar <davvid@gmail.com>
> ---
>
> This mkstemps() implementation is adapted from libiberty's
> GPLv2+ mkstemps.c.
>
> Makefile | 19 +++++++++++++
> compat/mkstemps.c | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> git-compat-util.h | 5 +++
> 3 files changed, 102 insertions(+), 0 deletions(-)
> create mode 100644 compat/mkstemps.c
Could you squash this in? I see that configure.ac is a bit outdated,
but we shouldn't make it even more so...
---
config.mak.in | 1 +
configure.ac | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/config.mak.in b/config.mak.in
index 7cce0c1..b6619af 100644
--- a/config.mak.in
+++ b/config.mak.in
@@ -46,6 +46,7 @@ NO_STRTOUMAX=@NO_STRTOUMAX@
NO_SETENV=@NO_SETENV@
NO_UNSETENV=@NO_UNSETENV@
NO_MKDTEMP=@NO_MKDTEMP@
+NO_MKSTEMPS=@NO_MKSTEMPS@
NO_ICONV=@NO_ICONV@
OLD_ICONV=@OLD_ICONV@
NO_DEFLATE_BOUND=@NO_DEFLATE_BOUND@
diff --git a/configure.ac b/configure.ac
index 4e728bc..2ddf498 100644
--- a/configure.ac
+++ b/configure.ac
@@ -677,6 +677,12 @@ 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.
--
1.6.3.1
prev parent reply other threads:[~2009-05-27 8:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-27 3:19 [PATCH 1/2] compat: add a mkstemps() compatibility function David Aguilar
2009-05-27 3:19 ` [PATCH 2/2] diff: generate prettier filenames when using GIT_EXTERNAL_DIFF David Aguilar
2009-05-27 5:17 ` David Aguilar
2009-05-27 6:34 ` Johannes Sixt
2009-05-27 6:37 ` David Aguilar
2009-05-27 7:02 ` David Aguilar
2009-05-27 7:14 ` Johannes Sixt
2009-05-27 8:20 ` Jakub Narebski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m33aarc5yc.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=davvid@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=johannes.schindelin@gmx.de \
--cc=markus.heidelberg@web.de \
--cc=nick@incise.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).