[PATCH] Add mkdtemp() workaround for Sun Solaris 10
- From
- Guido Ostkamp <git@ostkamp.fastmail.fm>
- Date
- Nov 16, 2007, 18:59 UTC
- Message-ID
- <Pine.LNX.4.64.0711161954510.7139@bianca.dialin.t-online.de>
- In-Reply-To
- <7v640340kp.fsf@gitster.siamese.dyndns.org>
On Thu, 15 Nov 2007, Junio C Hamano wrote:
> Are there problems with the implementation in compat/ directory, we ship > specifically to help platforms without mkdtemp()?
I checked again and the answer is 'yes'. The reason is trivial - for Solaris 10 the workaround is not activated and my version of Solaris 10 (Sparc) has no mkdtemp() in libc.so.
The following patch should fix this:
Activate mkdtemp() workaround for Solaris 10.
Signed-off-by: Guido Ostkamp <git@ostkamp.fastmail.fm> --- Makefile | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile index e830bc7..9dc01df 100644 --- a/Makefile +++ b/Makefile @@ -431,6 +431,9 @@ ifeq ($(uname_S),SunOS) NO_C99_FORMAT = YesPlease NO_STRTOUMAX = YesPlease endif + ifeq ($(uname_R),5.10) + NO_MKDTEMP = YesPlease + endif INSTALL = ginstall TAR = gtar BASIC_CFLAGS += -D__EXTENSIONS__
-- 1.5.3.5.721.g039b