Skip to content

Commit

Permalink
clar: don't use mkdtemp(3p) on SunOS
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
pks-t committed Oct 14, 2024
1 parent 2be79ee commit 89b7608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clar/sandbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 89b7608

Please sign in to comment.