From b033fb18e65eedad980accfec56bc39f334cf8d7 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Mon, 14 Oct 2024 08:15:45 +0200 Subject: [PATCH] clar: don't use mkdtemp(3p) on SunOS We do not have mkdtemp(3p) available on SunOS, as it has only been added with POSIX.1-2008. Use the same compatibility code that we use on HP NonStop, which falls back to using mktemp(3) plus mkdir(3). --- clar/sandbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clar/sandbox.h b/clar/sandbox.h index 681a1f8..bc960f5 100644 --- a/clar/sandbox.h +++ b/clar/sandbox.h @@ -128,7 +128,7 @@ static int build_sandbox_path(void) if (mkdir(_clar_path, 0700) != 0) return -1; -#elif defined(__TANDEM) +#elif defined(__sun) || defined(__TANDEM) if (mktemp(_clar_path) == NULL) return -1;