From 6b27c75125f2b2c66d5d6dd8d35569260ac72f17 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 3 Jan 2025 12:21:28 +0100 Subject: [PATCH] Don't use non-standard ACCESSPERMS macro This macro is non-standard, and is not defined by e.g. musl libc. It's just a define for 0777, so just use that instead. --- ajabase/test/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajabase/test/main.cpp b/ajabase/test/main.cpp index 781964460..e18b10a31 100644 --- a/ajabase/test/main.cpp +++ b/ajabase/test/main.cpp @@ -1951,9 +1951,9 @@ TEST_SUITE("file" * doctest::description("functions in ajabase/system/file_io.h" _mkdir(tempDir.c_str()); _getcwd(cwdBuf, AJA_MAX_PATH); #else - if (mkdir(tempDir.c_str(), ACCESSPERMS) == 0) + if (mkdir(tempDir.c_str(), 0777) == 0) { - chmod(tempDir.c_str(), ACCESSPERMS); + chmod(tempDir.c_str(), 0777); } char* result = getcwd(cwdBuf, AJA_MAX_PATH); AJA_UNUSED(result);