aboutsummaryrefslogtreecommitdiff
path: root/lldb/source
diff options
context:
space:
mode:
authorDhruv Srivastava <dhruv.srivastava@ibm.com>2025-03-25 15:16:23 +0530
committerGitHub <noreply@github.com>2025-03-25 15:16:23 +0530
commite6e8252ba0a090d3a43f9df88214b415f9bb4e77 (patch)
treea5e8e84097f532fa4aea71d2ae30b5a50fd3f2d2 /lldb/source
parent6984cfea6c888965bb45d046abbb97ddb0443955 (diff)
downloadllvm-e6e8252ba0a090d3a43f9df88214b415f9bb4e77.zip
llvm-e6e8252ba0a090d3a43f9df88214b415f9bb4e77.tar.gz
llvm-e6e8252ba0a090d3a43f9df88214b415f9bb4e77.tar.bz2
[lldb][AIX] Minor AIX specific changes (#132718)
This PR is in reference to porting LLDB on AIX. Link to discussions on llvm discourse and github: 1. https://discourse.llvm.org/t/port-lldb-to-ibm-aix/80640 2. https://github.com/llvm/llvm-project/issues/101657 The complete changes for porting are present in this draft PR: https://github.com/llvm/llvm-project/pull/102601 AIX build specific changes
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Host/CMakeLists.txt4
-rw-r--r--lldb/source/Host/common/Host.cpp1
2 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Host/CMakeLists.txt b/lldb/source/Host/CMakeLists.txt
index 52ef67f..a2ae6f1 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 6e5a751..5992b54 100644
--- a/lldb/source/Host/common/Host.cpp
+++ b/lldb/source/Host/common/Host.cpp
@@ -19,7 +19,6 @@
#include <pwd.h>
#include <spawn.h>
#include <sys/stat.h>
-#include <sys/syscall.h>
#include <sys/wait.h>
#include <unistd.h>
#endif