Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1From 8312398dbc1f0a960c0e64c2faaa756277c0f67c Mon Sep 17 00:00:00 2001 2From: Alyssa Ross <hi@alyssa.is> 3Date: Fri, 3 Jan 2025 12:21:28 +0100 4Subject: [PATCH 3/3] Don't use non-standard ACCESSPERMS macro 5 6This macro is non-standard, and is not defined by e.g. musl libc. 7It's just a define for 0777, so just use that instead. 8 9Link: https://github.com/aja-video/libajantv2/pull/42 10--- 11 ajabase/test/main.cpp | 4 ++-- 12 1 file changed, 2 insertions(+), 2 deletions(-) 13 14diff --git a/ajabase/test/main.cpp b/ajabase/test/main.cpp 15index 78196446..e18b10a3 100644 16--- a/ajabase/test/main.cpp 17+++ b/ajabase/test/main.cpp 18@@ -1951,9 +1951,9 @@ TEST_SUITE("file" * doctest::description("functions in ajabase/system/file_io.h" 19 _mkdir(tempDir.c_str()); 20 _getcwd(cwdBuf, AJA_MAX_PATH); 21 #else 22- if (mkdir(tempDir.c_str(), ACCESSPERMS) == 0) 23+ if (mkdir(tempDir.c_str(), 0777) == 0) 24 { 25- chmod(tempDir.c_str(), ACCESSPERMS); 26+ chmod(tempDir.c_str(), 0777); 27 } 28 char* result = getcwd(cwdBuf, AJA_MAX_PATH); 29 AJA_UNUSED(result); 30-- 312.49.0 32