diff --git a/clar.c b/clar.c index f42ab45..64879cf 100644 --- a/clar.c +++ b/clar.c @@ -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 #include 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;