From 4cd115f233c578333afc9fc3695b2a010faa6e15 Mon Sep 17 00:00:00 2001 From: Aditya Vidyadhar Kamath Date: Tue, 22 Apr 2025 01:05:55 -0500 Subject: [PATCH] testSystemTools: Fix preprocessor condition for AIX Update commit dc6b66411 (testSystemTools: apply root-check on AIX, 2022-01-31) to identify AIX with `_AIX`. --- testSystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testSystemTools.cxx b/testSystemTools.cxx index 5070df4..a7002e1 100644 --- a/testSystemTools.cxx +++ b/testSystemTools.cxx @@ -351,7 +351,7 @@ static bool CheckFileOperations() // While we're at it, check proper TestFileAccess functionality. bool do_write_test = true; #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \ - defined(__NetBSD__) || defined(__DragonFly__) || defined(__HOS_AIX__) + defined(__NetBSD__) || defined(__DragonFly__) || defined(_AIX) // If we are running as root on POSIX-ish systems (Linux and the BSDs, // at least), ignore this check, as root can always write to files. do_write_test = (getuid() != 0); -- GitLab