Skip to content

Commit

Permalink
Merge pull request #107 from pks-t/pks-sunos-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ethomson authored Oct 14, 2024
2 parents 6925d1d + b033fb1 commit 0810a36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion clar.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
* For full terms see the included COPYING file.
*/

#define _BSD_SOURCE
#define _DARWIN_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#define _DEFAULT_SOURCE

#include <errno.h>
#include <setjmp.h>
Expand Down
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 0810a36

Please sign in to comment.