From: Guido Ostkamp Date: Fri, 16 Nov 2007 18:59:58 GMT Subject: [PATCH] Add mkdtemp() workaround for Sun Solaris 10 Message-ID: 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 --- 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