Skip to content

Commit b033fb1

Browse files
committed
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).
1 parent b9563a2 commit b033fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clar/sandbox.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static int build_sandbox_path(void)
128128

129129
if (mkdir(_clar_path, 0700) != 0)
130130
return -1;
131-
#elif defined(__TANDEM)
131+
#elif defined(__sun) || defined(__TANDEM)
132132
if (mktemp(_clar_path) == NULL)
133133
return -1;
134134

0 commit comments

Comments
 (0)