Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15
DORMANTno replies

[PATCH] Add mkdtemp() workaround for Sun Solaris 10

From: Guido Ostkamp <hidden>
Date: 2016-06-15 22:43:52
Subsystem: kernel build + files below scripts/ (unless maintained elsewhere), the rest · Maintainers: Nathan Chancellor, Nicolas Schier, Linus Torvalds

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 <redacted>
---
  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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help