https://github.com/DhruvSrivastavaX updated https://github.com/llvm/llvm-project/pull/132718
>From c6392f75d270467300c5cf6cdbcfae088d1e48eb Mon Sep 17 00:00:00 2001 From: Dhruv-Srivastava <dhruv.srivast...@ibm.com> Date: Mon, 24 Mar 2025 06:44:24 -0500 Subject: [PATCH 1/2] Minor AIX specific changes --- lldb/source/Host/CMakeLists.txt | 4 ++++ lldb/source/Host/common/Host.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lldb/source/Host/CMakeLists.txt b/lldb/source/Host/CMakeLists.txt index 52ef67feeb6ab..a2ae6f1430c38 100644 --- a/lldb/source/Host/CMakeLists.txt +++ b/lldb/source/Host/CMakeLists.txt @@ -7,6 +7,10 @@ if (APPLE AND LLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY) endif() endif() +if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX") + add_definitions("-D_ALL_SOURCE") +endif() + macro(add_host_subdirectory group) list(APPEND HOST_SOURCES ${ARGN}) source_group(${group} FILES ${ARGN}) diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index 6e5a75128eb27..a08c97d8e22f8 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -19,7 +19,9 @@ #include <pwd.h> #include <spawn.h> #include <sys/stat.h> +#ifndef _AIX #include <sys/syscall.h> +#endif #include <sys/wait.h> #include <unistd.h> #endif >From a799ea44afb3796a3a0717d008a0f25527a6ea23 Mon Sep 17 00:00:00 2001 From: Dhruv-Srivastava <dhruv.srivast...@ibm.com> Date: Tue, 25 Mar 2025 04:12:38 -0500 Subject: [PATCH 2/2] Removed syscall.h --- lldb/source/Host/common/Host.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index a08c97d8e22f8..5992b54318f73 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -19,9 +19,6 @@ #include <pwd.h> #include <spawn.h> #include <sys/stat.h> -#ifndef _AIX -#include <sys/syscall.h> -#endif #include <sys/wait.h> #include <unistd.h> #endif _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits