--- tools/lldb/tools/lldb-server/CMakeLists.txt.orig 2017-01-10 20:40:38.000000000 +1100 +++ tools/lldb/tools/lldb-server/CMakeLists.txt 2020-05-14 09:07:46.272368000 +1000 @@ -6,6 +6,14 @@ ) endif () +if ( CMAKE_SYSTEM_NAME MATCHES "BSDSUniX" ) +include_directories( + ../../../../llvm/include + ../../source/Plugins/Process/BSDSUniX + ../../source/Plugins/Process/POSIX + ) +endif () + if ( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" ) include_directories( ../../../../llvm/include @@ -123,7 +131,7 @@ endif() # On FreeBSD/NetBSD backtrace() is provided by libexecinfo, not libc. -if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "NetBSD") +if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "BSDSUniX" OR CMAKE_SYSTEM_NAME MATCHES "NetBSD") list(APPEND LLDB_SYSTEM_LIBS execinfo) endif()