Skip to content

Commit e6e8252

Browse files
[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. #101657 The complete changes for porting are present in this draft PR: #102601 AIX build specific changes
1 parent 6984cfe commit e6e8252

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lldb/source/Host/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ if (APPLE AND LLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY)
77
endif()
88
endif()
99

10+
if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
11+
add_definitions("-D_ALL_SOURCE")
12+
endif()
13+
1014
macro(add_host_subdirectory group)
1115
list(APPEND HOST_SOURCES ${ARGN})
1216
source_group(${group} FILES ${ARGN})

lldb/source/Host/common/Host.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <pwd.h>
2020
#include <spawn.h>
2121
#include <sys/stat.h>
22-
#include <sys/syscall.h>
2322
#include <sys/wait.h>
2423
#include <unistd.h>
2524
#endif

0 commit comments

Comments
 (0)